EXC_BAD_ACCESSS in iOS simulator
I have a Unity project that runs fine in the editor (version 5.4.1), on Android devices (it's currently published to Google Play), on iOS hardware (iPhone and iPad), but not in the iOS simulator. I'm using Xcode 8.1 on El Capitan. I get an error "EXC_BAD_ACCESS (code=1, address=0x0)" before the Unity splash screen even shows up. I tried cleaning the project. The only reason I need to run the simulator is to get the required screenshots to publish to the App Store. My test devices are an iPad Mini 2 and an iPhone 5S, and apparently you need screenshots from the largest size of each device. Any help either determining the cause of the error or some other method of generating the screenshots would be greatly appreciated.
Answer by jahester · Nov 10, 2016 at 01:52 AM
I figured it out. I have a debug flag that queries the device ID when set to true in order to serve up test ads and avoid getting banned by Admob. I had left it set to true after testing on the physical iOS devices. Apparently the simulator doesn't like having its device ID queried. I set it to false and now the app is running fine on the simulator.
Your answer

Follow this Question
Related Questions
Unity iOS - Wont compile in Xcode 2 Answers
expected unqualified id on libiconv.2.tbd 0 Answers
xcode - linker command failed with exit code 1 8 Answers
Crazy high RAM usage on IOS 0 Answers