On my new clean mac deploying an iphone app from Visual Studio crashes the simulator, and then the simulator can not be opened ever again.
I have a problem with Xamarin and the iphone simulator running on my new Mac with a clean installation of Mac OS 10.8.3.
I have Xcode 4.6.1 and Xamarin Studio 4.0.4 (build 2), and I am deploying the Hello World application from a Windows computer (I have tried this both from a PC and from a Windows installation with Parallels on the Mac).
This is how I have tested:
Now, the serious part of this problem is that now the simulator crashes with the same message even if I try to run the Master-Detail project from Xcode or from Xamarin Studio.
In fact just opening the simulator from Xcode->Open Developer Tool ->iOS Simulator makes the simulator crash with the same message.
So when this happens the Mac is rather useless as a development tool, so I uninstalled Xcode, rebooted, and installed Xcode again. But to my surprise the simulator still crashes with the same message.
Since this is a new Mac, I have reinstalled iOS and tried this again three times actually, and I have the same problem every time. Everything works fine until I deploy a iphone application from Visual Studio, and then the simulator won’t work again.
Can you try to reproduce this error yourself on a clean mac? I guess more people will have this problem when they are getting new macs…
The new mac I have got is the new 15 inch retina Macbook Pro, with 16 GM RAM, 2.7 GHz Intel Core i7.
By the way, I can still deploy the applications from Visual Studio to my old mac, so the problem seems to be happening only on clean installations.
(As a side note: I am not running Xcode 4.6.2, since the build server does not start with 4.6.2 (again this is on a clean installation, I guess an older upgrade would work, if the “prefix” in the error message was already added in an earlier version): From mtbserver.log when trying to connect to the build server:
[20-Apr-2013 13:05:23] Error: Error loading Xcode information for prefix '/Applications/Xcode.app/Contents/Developer'
[20-Apr-2013 13:05:23] Exception: Exception type: System.FormatException
Input string was not in the correct format
at System.Int32.Parse (System.String s) [0x00000] in :0
at MonoTouch.Tools.Frameworks.AppleSdkSettings.Init () [0x00000] in :0
[20-Apr-2013 13:05:23] Exception: Exception type: System.ApplicationException
Apple SDK developer root not specified.
at MonoTouch.Tools.Frameworks.MonoTouchFrameworks.Init () [0x00000] in :0
at Mtb.Application.MainClass.Init () [0x00000] in :0
at Mtb.Application.MainClass.Main (System.String args) [0x00000] in :0
[20-Apr-2013 13:05:23] Error: Unknown error occurred.