iOS Build and Run Mystery!

Hope someone can figure this out,

I create a new Unity iOS project, add a sphere, cube, and play, build and run, then get 8 errors in Xcode. Do the same thing again, errors go away.

Delete all projects (Unity and Xcode), do the same thing and again, 8 errors at first.

Why is this happening?

How can anyone even guess what’s happening if you don’t mention what these 8 errors are?
Can you elaborate on these errors, whether they occur during building or running, and any other information that seems relevant?

My guess would be that on the 1st build the target is wrong and that’s corrected on subsequent builds until you delete and recreate the problem.

I don’t think so, it says Unity iPad 3.2 Simulator.

Here are the 8 errors I get:

“_mono_aot_module_mscorlib_info”, referenced from:

“_mono_aot_module_UnityEngine_info”, referenced from:

“_mono_ficall_flag”, referenced from:

“DecompressDXT1(int, int, int, unsigned long const*, unsigned long*)”, referenced from:

“_FMOD_OggVorbis_Malloc”, referenced from:

“_FMOD_OggVorbis_Free”, referenced from:

“_FMOD_OggVorbis_ReAlloc”, referenced from:

“_FMOD_OggVorbis_Calloc”, referenced from:

I am very new to unity, so I am sorry if I am not very descriptive.

So the target is wrong.

Yeah you can’t build to Simulator, only a physical device.

It’s not a huge setback overall, as the Simulator is just a worse version of the UnityEditor itself. If you want to see it emulated, you have the editor, and so only deployed builds have to go through XCode.

I am able to build and run in the simulator. I am completely confused, how can I get a simple Unity app on the iPad or iPhone?

Ok, so I updated my iPad to the latest version, and still got errors. I then realized that my SDK was outdated, so I updated Xcode as well. Now everything compiles and installs on my iPad, but crashes on start. I am not getting errors, just warning. Could someone explain this please:

/Documents/projects/deploy/iPadTest1Deploy/Classes/AppController.mm:461:10: warning: enumeration values ‘kScreenOrientationUnknown’, ‘autorotation’, and ‘kScreenOrientationCount’ not handled in switch [-Wswitch-enum,3]

/Documents/projects/deploy/iPadTest1Deploy/Classes/AppController.mm:881:18:{881:18-881:29}: warning: incompatible pointer types passing ‘UIView *’ to parameter of type ‘EAGLView *’ [-Wincompatible-pointer-types,3]

Finally solved. I used the solution here: http://forum.unity3d.com/threads/107248-iOS5-GM-Build-problems/page4

Thanks for your help everyone.