- Home /
Building for iOS Simulator
I've just tried to get our app to run on the simulator and failed. I've then gone and tested a completely clean Unity project and got the same error. The iOS build is built from Unity with the Simulator SDK and I've tried a target iOS version of 5 and 7.1. I'm using Unity 4.5.5 The xcode project compiles and runs but crashes on boot in the following location
#0 0x052aaa6a in __pthread_kill ()
#1 0x05166b2f in pthread_kill ()
#2 0x04f4a9c9 in abort ()
#3 0x017a7cff in _interposition_vtable_unimplemented ()
#4 0x017ba538 in open$UNIX2003 ()
#5 0x00b5e387 in g_file_get_contents at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/eglib/src/gfile-posix.c:64
#6 0x00aa48cc in mono_config_parse_file_with_context at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mono/metadata/mono-config.c:393
#7 0x00aa4a20 in mono_config_parse_file at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mono/metadata/mono-config.c:427
#8 0x00aa4e1b in mono_config_parse at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mono/metadata/mono-config.c:553
#9 0x002879ce in InitializeMonoFromMain(std::vector<std::string, std::allocator<std::string> > const&, std::string, int, char const**, bool) at /Applications/buildAgent/work/d63dfc6385190b60/Runtime/Mono/MonoManager.cpp:2080
#10 0x0002c59d in UnityInitApplicationNoGraphics at /Applications/buildAgent/work/d63dfc6385190b60/PlatformDependent/iPhonePlayer/LibEntryPoint.mm:164
#11 0x0001d185 in -[UnityAppController application:didFinishLaunchingWithOptions:] at /Users/Henry/New Unity Project/test/Classes/UnityAppController.mm:185
#12 0x01c1414f in -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] ()
#13 0x01c14aa1 in -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] ()
14 0x01c19667 in -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] ()
#15 0x01c2df92 in -[UIApplication handleEvent:withNewEvent:] ()
#16 0x01c2e555 in -[UIApplication sendEvent:] ()
#17 0x01c1b250 in _UIApplicationHandleEvent ()
#18 0x042aef02 in _PurpleEventCallback ()
#19 0x042aea0d in PurpleEventCallback ()
#20 0x04607ca5 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ ()
#21 0x046079db in __CFRunLoopDoSource1 ()
#22 0x0463268c in __CFRunLoopRun ()
#23 0x046319d3 in CFRunLoopRunSpecific ()
#24 0x046317eb in CFRunLoopRunInMode ()
#25 0x01c18d9c in -[UIApplication _run] ()
#26 0x01c1af9b in UIApplicationMain ()
#27 0x00002925 in main at /Users/Henry/New Unity Project/test/Classes/main.mm:36
The console log contains only the following
2014-12-09 12:19:34.410 ProductName[2933:90b] -> registered mono modules 0xd17500
-> applicationDidFinishLaunching()
Mono path[0] = '/Users/Henry/Library/Application Support/iPhone Simulator/7.1/Applications/EFB5F996-226D-472B-B68E-83F824CEC149/ProductName.app/Data/Managed'
Mono config path = '/Users/Henry/Library/Application Support/iPhone Simulator/7.1/Applications/EFB5F996-226D-472B-B68E-83F824CEC149/ProductName.app/Data/Managed'
Detected an attempt to call a symbol in system libraries that is not present on the iPhone:
open$UNIX2003 called from function g_file_get_contents in image ProductName.
Does anybody know what is needed to get this working? Its necessary to send a simulator build to Facebook so they can review our app before we submit to Apple.
Answer by TedB · Jan 17, 2015 at 07:41 PM
This question and answer discusses the error. I ran in to the error using Unity 4.6.1, but do not have the error using Unity 4.6.0. Hopefully this will be addressed in an update.
Your answer
Follow this Question
Related Questions
[iOS] Can I check if my game is running on a simulator vs device? 1 Answer
Unity 4.6.1 iOS Simulator Runtime Error 1 Answer
Iphone 4s simulator problem ? 1 Answer
Getting rid of 'Development Build' watermark in simulator 0 Answers
Simulated iOS not rendering some textures that real hardware can 1 Answer