I created a iOS project using Unity (to load a unity model in the ipad app).
Now I want to integrate this with my existing app. Which is in XCode 5 and using ARC and storybords and coredata etc…
The iOS project which get created from Unity is not using ARC. So when I try to integrate these two, I get different errors.
I tried enabling ARC for the project and disabling ARC from the unity related classes using -fno-objc-arc. But still there are differnt types of errors.
So I feel there’s a better way to do this. Can you please tell me what is the best way to integrate a project created from unity with another iOS project. If there’s any documentation or a tutorial, it’ll be really helpful.
I also tried that link. But since I’m using Unity 4.2 and Xcode 5 I can’t get it work using that.
Yesterday I tried like this.
Instead of adding the unity ios project to my ios project, I used the unity ios project and marked it as ARC = Yes and added -fno-objc-arc tag to unity created .mm files and built the unity iOS project with ARC.
Then added my own app delegate(and other files to that project) and tried the advice given here. It seems they have made it work that way. But still I’m having some issues. http://forum.unity3d.com/threads/191971-Unity-AppController-subclassing
Have a look at that and if you get it working please share how you did it.
Thanks.