When I build my app in Unity iPhone (1.5.1), it builds the XCode project, launches XCode (version 3.1.4). XCode compiles the app, sends it to the device, and runs it.
However, often the XCode build triggered by Unity fails outright with an error, something about there being no target selected. Two issues: 1) Instead of stopping, XCode goes ahead and runs the last build that I transferred to the device. If I'm not paying attention I might think that it's running the new build, not the old one. 2) When I click on Build & Go in XCode, the app builds with no errors, transfers to the device, and all is well.
I would like to avoid this phantom build error if possible. But it wouldn't be a big deal if XCode aborted instead of running the version of the app that's already installed on the device. So help with either of these issues would be appreciated.
I had similar problems prior to 1.5.1, are you doing Build and Run or going through Build Settings?
I have found that my problems occurred when using Build and Run, so to get around that I go through Build Settings and then override everything in the folder (or create a new folder each time).
Hope that helps!
answered Dec 04 '09 at 10:31 PM