Search Unity

  1. Check out our Unite Austin 2017 YouTube playlist to catch up on what you missed. More videos coming soon.
    Dismiss Notice
  2. Unity 2017.2 is now released.
    Dismiss Notice
  3. The Unity Gear Store is here to help you look great at your next meetup, user group or conference. With all new Unity apparel, stickers and more!
    Dismiss Notice
  4. Introducing the Unity Essentials Packs! Find out more.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice
  6. Unity 2017.3 beta is now available for download.
    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:
    2
    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:
    276
    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:
    2
    Thank you for the answer, but this is the exactly opposite case
     
  4. samizzo

    samizzo

    Joined:
    Sep 7, 2011
    Posts:
    276
    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