Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Created attachment 2591 [details]
MonoTouch 6 App Crashes immediately in iOS 5.x Simulators
As far as I can see no code in my app is executed at all, breakpoints in Main are not hit and the Application Log from MonoDevelop is:
Starting iOS simulator 5.1
Application launched. PID = 286
Note that iOS 5 & 6 devices work fine, as does the iOS 6 Simulator.
This is a known bug I thought was fixed :|
*** This bug has been marked as a duplicate of bug 6513 ***
Created attachment 2592 [details]
Here is a hotfix until MonoTouch 6.0.1 is released: unzip the contents of the provided zip file into /Developer/MonoTouch/usr/bin.
I've just tried 6.0.1 and the app still won't run in the 5.x simulators. Symptoms are as before, the app exits before any code is executed.
Can you try the hotfix in comment #3 to see if it works for you?.
Same results crashes immediately using the hotfix.
cmck, is anything printed in the Console app (Applications/Utilities/Console) when the app crashes in the simulator?
Created attachment 2633 [details]
Simulator App Crash File
Created attachment 2634 [details]
Console output during crash
Strange, this does not happen with the test project in comment #1 for me (nor have I seen this particular crash before).
1) Which version of Xcode do you have installed?
2) Can you add "-v -v -v" to the additional mtouch arguments, rebuild your project and attach the full build log?
Created attachment 2636 [details]
It crashes for me everytime!
1) Xcode 4.5
I tried a few variations:
1. mtouch hotfix & -nofastsim -> Crash
2. motouch hotfix & remove -nofastsim -> Works!
3. no mtouch hotfix & remove -nofastsim -> Works!
Your previous simlauncher scripts are also in place so I'm not sure what exactly fixed it.
I believe at least the simlauncher binaries work now (they aren't used if you pass -nofastsim).
I'll put these fixes in the next 6.0 release (probably 6.0.3), if you run into problems again just reopen the bug report.
I installed the MonoTouch 6.0.3 beta because it listed that it fixed this problem. After installing my simulator still crashes.
I also copied the simlaunchers but no luck.
Any ideas on what I should do next?
Jan, can you attach the crash report that is generated?
Created attachment 2683 [details]
Crash Log file
as you can see, I've added the crash log. Hope it helps!
Jan, have you tried the 5.1 simulator (as opposed to the 5.0 simulator)? do you get the same crash then?
Created attachment 2684 [details]
iOS Simulator 5.1 crash log
the iOS 5.1 crashes the same way. I've added the crash log as an attachment.
Jan, can you do the following:
1) Make sure you're not using the simlaunchers from comment 3 or mtouch from comment 12 (the easy way to do this is to re-install MonoTouch).
2) Create a new project from a template, try to run it in the 5.1 simulator.
3) Add -nofastsim to the additional mtouch arguments in the project's iPhone Build options page, and try again in the 5.1 simulator.
I reinstalled MonoTouch 6.0.2, and created a new project. Here's what I found.
- The clean project runs in both the 5.0 and 5.1 simulator.
- Adding '-nofastsim' crashes the simulator with the following error:
dyld: Symbol not found: ___CFObjCIsCollectable
Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
(I was not able to find a crash report)
- Remove '-nofastsim' again, and everything runs smooth again.
Q: Is there something I can do to make my current (iOS 5) projects run the simulator?
Additionally, I installed the MonoTouch 6.0.4 beta. The same application runs fine without '-nofastsim', however, I get a different error when running with '-nofastsim':
dyld: Symbol not found: _OBJC_CLASS_$_NSObject
Referenced from: /Users/janvdp/Library/Application Support/iPhone Simulator/5.1/Applications/0D202537-5771-483D-ACD4-289E156C0199/quicktest.app/quicktest
Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk/usr/lib/libobjc.A.dylib
in /Users/janvdp/Library/Application Support/iPhone Simulator/5.1/Applications/0D202537-5771-483D-ACD4-289E156C0199/quicktest.app/quicktest
Can you zip up "/Users/janvdp/Library/Application Support/iPhone
Simulator/5.1/Applications/0D202537-5771-483D-ACD4-289E156C0199/quicktest.app" and attach it /send it to me?
The zipped app is in your mail :)
I've been having the same issue with Monotouch 6.0.2 and Xcode 4.5 and simulator 5.1. The app runs properly in the 6.0 simulator but crashes before starting in the 5.1. simulator. Checking the crash log, I'm getting the same error "dyld: Symbol not found: _OBJC_CLASS_$_NSObject" that the original poster is getting.
I've tried the -nofastsim flag and there is no change.
However I found if I go to the 'iphone build' page and change the SDK version from 'default' to '5.1' it runs properly.
I finally found out what's wrong (and fixed it).
The next release with this fix should be 6.0.5.
Do you have a estimate for when the 6.0.5 version will be released.
I am having this issue on iOS 5.x when importing the Facebook SDK bindings.
Martin, we've started the release process for 6.0.5, and if nothing goes wrong it should be out within a week.
Today we have checked this issue on following builds :
Now we are able to build / run application on device or simulator without any
Hence closing this issue. Changing its status to verified.