Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Create iOS Framework from a Unity project

Discussion in 'iOS and tvOS' started by DobrinescuI, Oct 6, 2017.

  1. DobrinescuI

    DobrinescuI

    Joined:
    Oct 6, 2017
    Posts:
    5
    I am trying to create an iOS Framework from a unity project in order to integrate it in an existing iOS app.

    I managed to build the framework but my app crashes on applicationDidBecomeActive()

    Crash: crash.png

    Application output: output.png

    Stack Trace: stack trace.png

    Framework entry point: start Unity.png

    I'm assuming that i don't initialize the unity correctly. How can i fix this?
    Is there a better way to integrate unity in an existing native iOS project?
     
  2. samizzo

    samizzo

    Joined:
    Sep 7, 2011
    Posts:
    487
    I don't know if this helps, but I did this the other way around: I created a static library for iOS code and UI, and integrated that into Unity. I have a repository here which demonstrates it:

    https://github.com/samizzo/UnityNativePrototype

    -sam
     
  3. DobrinescuI

    DobrinescuI

    Joined:
    Oct 6, 2017
    Posts:
    5
    Thank you for the answer, but this is the exactly opposite case
     
  4. samizzo

    samizzo

    Joined:
    Sep 7, 2011
    Posts:
    487
    Yeah, I know sorry :) I had actually tried to do it the way you wanted originally in my project but it was too problematic and I couldn't get it to work, so that's why I chose to do it the other way around.

    -sam
     
  5. Muaaz

    Muaaz

    Joined:
    Apr 9, 2018
    Posts:
    1
    Hello brother!
    I'm facing issue in creating an ios framwork from unity project. Can u guide me how to create an ios framework from a unity project or just refer me to some existing link on this current situation.
    I'm basically a unity developer so i'm having a hard time integrating a unity project into an ios app.
    Thanks in advance