Copying unity 3 Xcode essentials to another existing Xcode Project

Hi,
i am currently again doing an iApp Job, where i use unity but only load the unity content at a certain time, and put a “xcode” made Gui on top of it. Communication between the unity part and the gui is done via plugins.

So far, when i needed to make changes i did a build and run in unity, and had aaaaaaallllllll the xcode classes and media files in a separate folder. A unity editorscript would copy this stuff inside the new build.
Also this works, it forces me to be double extra extremely cautious on when and which xcode parts i write inside the unity xcode folder to get copied back to the new build. Too easy to forget something and in this cause i overwrite my xcode changes or run into other trouble. Furthermore, i need to add again by hand some frameworks, that unity does’´nt use, but are required. Like Coregrafics and the like.

Now, it would be much easier if i could build and run the unity stuff, and then just the relevant parts of the resulting xcode project over to my other “Full App Xcode project.”

As of unity 3.1 (didn´t check 3.2 so far) this would probably be:

  1. the complete “Libraries” Folder with all those dlls
  2. the complete “Data” Folder (here i see something like level0, level1, Managed, sharedassets and so on)
  3. parts of the folder Classes. This one is special. I need to modify appcontroller.mm and maybe another class, so i better don’t overwrite that.

So, is that possible or are there some hidden magic links between some parts that would break everything?
Of course i can just try and see what happens, but i thought i better ask, maybe somebody knows.

And curious as i am i would like to know, what is inside excactly inside those “Data” Folder files. I wuold like to check, what unity is making of my textures and models and what is stored where. Is there a way to sneek inside those asset files?

To answer my own question, yes this works.

One only needs to be careful to actually add files to the xcode project itself (or in case you used stripping or changed a lot, remove some files from the project)

After that you need to clean all targets.

Hi marjan,
I’m curious to know if you made it and if yes…how…
I got the same problem and i’m going mad.
I did a simple game with unity and i need to create the main menu, info and credits in xcode, then when i push the play button the unity3d game will start.

I didn’t manage to do it so…if you can tell me how you did it would be very appreciated! :slight_smile:

Thank you in advance.
iguana_02

Well i followed these steps:
http://technology.blurst.com/a-cocoa-based-frontend-for-unity-iphone-applications/

That post is rather outdated, and incorporates special needs of that one developper. But thats “basically” how i did it.

Something newer that might get you quicker to success is a Plugin called “NativeToolkit” by prime31.
I didn´t check it out but have other PlugIns from them and they saved me a lot of time. It´s supposed to be somewhere in unitys Assetstore for free.

Thank you marjan,
i tried Nativetoolkit and it works but don’t know why it gaves me problems with my game…after some click quits the app…

I’ll try that forum maybe it uses a different method…

thank you again.