Hello,
I put together a basic fps game in iphone, game functions properly in unity, no issues. Works with unity remote as well…but
when i tried compiling i got about 115 errors and no matter what i tried it will not work.
provisioning is fine and i have installed other apps created outside unity without issue.
so my questions are?
I am testing with 2g iphone, is unity compatible with 2g?
Using Snow leopard 10.6, Xcode 3.2.1, OS 3.1.2, any issues with this setup and unity iphone??
using unity iphone basic, can i compile with basic??
code is c++? can i use c++ with iphone basic?
Sorry guys,please help in any way you can…thanks!
thought i was on a roll after getting game to work in iphone, turns out that was the easy part…haha!
Of course.
I think some people have issues with Unity Remote + Snow Leopard, but not compiling.
It would be utterly worthless if you couldn’t.
That’s Objective-C. Unless you want to tweak some things in AppController.mm, you personally don’t do any Objective-C coding, and only the framework code is Objective-C.
Not sure how you end up with errors like that unless something went fundamentally wrong though.
–Eric
haha 
yeah, something is just not right here…back to drawing board…
but thanks for response!
Eric
found it…doh!
somehow, issue was with scenes added to compiler…
SUCCESS!!
Thanks!
May I ask if you remember what the issue was in more detail? I am getting those exact same error messages when running Unity iPhone 1.7, Xcode 3.2.3 (iPhone SDK 4.0) and an iPhone 3GS with iOS 4.0.
Its like this for all Unity projects, even an empty scene as well as the official examples.
I’m having the exact same issue here and I still couldn’t identify what’s wrong!
I noticed that the some files are missing, including the “AppController.h”.
Older Unity build folders in my backup have the “AppController.h” in the Classes folder, but new projects I try to build with Unity 1.7 don’t. Why are they missing?
I can use those older build folders and compile to OS4.0 just fine but I can’t seem to do the same with fresh builds.
I’m pretty sure this is something trivial but I’d really like some ideas!
Hi, I finally solved it!
The 115 errors were being reported mainly because some essencial header files were missing!
I tried creating a new project in Unity but still the header files were missing and XCode kept reporting 115 errors.
A few minutes ago, I tried building a project with Unity on a computer that has the same settings as mine and it worked. So then, I decided to reinstall Unity iPhone on my computer and that’s it. It worked! The headers files were being generated again!
I believe this happened right after I installed the new XCode 3.2.3 with SDK 4.0.
So, again, try reinstalling Unity… it worked for me! =D
I too am getting the exact same problems. I copied my project to my other Mac and it too had the same amount of errors (115) and was missing a number of header files. AppController.h , iPhone touch something or other. The errors are due to the lack of generated header files.
Additionally, I’ll sometimes get the error about bad triangles (can’t remember the exact error) but I’m using snow leopard on an iMac 2.4 intel duo and a 13" MacBook. Same project, different computers but the same Xcode errors you described.
Any help would be greatly appreciate
You’re right. Reinstalling unity iPhone got rid of the
Xcode errors. But I’m still getting an error about it failing to generate triangle strip. Triangle indicted are not stripified. But it fails to tell me which mesh, scene or object that’s generating this unity building error. Anyone else get this?
let unity reimport all assets and check the console window