Building error in XCode from building Unity.

I have encountered a problem to develop iphone app, using Unity. I need your support.

The problem is followed:

This is complied source code(XCode) from Unity.

#if !(TARGET_IPHONE_SIMULATOR)
const char* UnityIPhoneRuntimeVersion = “3.3.0f4”; /* targetDevice = 2 /
void mono_dl_register_symbol (const char
name, void *addr);
extern int mono_ficall_flag;
void mono_aot_register_module(gpointer aot_info);
extern gboolean mono_aot_only;
extern gpointer
mono_aot_module_Assembly_CSharp_info; // Assembly-CSharp.dll

#endif

I should test by iPhone Simulator, but there are compile error in XCode. It is very unconvenient since I should modify the source code for testing.

I assume the reason is 'mono_dll_register_symbol’function is in that TARGET_IPHONE_SIMULATOR is not defined.

Please let me know if I made some mistakes and give me advices and I appreciate in advanace.

Try the following:

  1. Delete the dir you are outputting the build to, if it exists - just to make sure you are starting fresh.
  2. In Unity: Edit → Project Settings → Player Settings.
  3. Make sure you are looking at the iOS per-platform settings.
  4. Set the SDK Version to iOS Simulator Latest
  5. Build (not build & run)
  6. Open the .xcodeproj file with XCode and make sure you have the Unity-iPhone-Simulator target selected, and are building for the simulator. (eg, Unity-iPhone-Simulator | iPhone 4.3 Simulator)
  7. Build and Run in XCode

Hi ,

Bunch of errors when build unity in xCode - Questions & Answers - Unity Discussions

just enter correct ios version, target version and .net compability.

You just check the link i think you have done a mistake what i have faced before. hope you’ll get answer from this.