Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unity app as iOS framework

Discussion in 'iOS and tvOS' started by EdwinMurari, Feb 11, 2020.

  1. EdwinMurari

    EdwinMurari

    Joined:
    Jan 15, 2019
    Posts:
    6
    Hello,
    I have been trying to build an iOS framework which includes unity as library in the framework. I came across a few guides to do so:
    https://www.kodbiro.com/blog/a-great-way-to-integrate-unity-into-the-native-ios-app/#comment-49
    https://github.com/forestlin1212/un...master/config-instrution/config-instrution.md

    I managed to compile the framework successfully without any errors, but I got a bunch of errors when I included it in a test app tried it build it. I am kinda stuck now and am not able to proceed any further.

    Here is the errors that I encountered:




    This is the link to the xcode framework project and the test app:
    https://my.pcloud.com/publink/show?code=XZkeiWkZmwNXLdosXMkNvu7fxHuVY4QXnMXX

    The unity project that I am trying to include in the framework is this one:
    https://github.com/Unity-Technologies/uaal-example

    Any help is really appreciated.

    Thanks
     
  2. EdwinMurari

    EdwinMurari

    Joined:
    Jan 15, 2019
    Posts:
    6
    I fixed this by including "libc++.tbd" in xcode.

    I am now stuck on this error:
    Code (CSharp):
    1. ld: warning: arm64 function not 4-byte aligned: _unwind_tester from UnityOutFramework.framework/UnityOutFramework(unwind_test_arm64.o)
    2. Undefined symbols for architecture arm64:
    3.   "_OBJC_CLASS_$_AVPlayerViewController", referenced from:
    4.       objc-class-ref in UnityOutFramework(FullScreenVideoPlayer.o)
    5. ld: symbol(s) not found for architecture arm64
    6. clang: error: linker command failed with exit code 1 (use -v to see invocation)
     
  3. EdwinMurari

    EdwinMurari

    Joined:
    Jan 15, 2019
    Posts:
    6
    Fixed this too by adding AVKit library.