Bug 23895 - Xamarin.iOS Build Host fails to start iOS Simulator on Yosemite
Summary: Xamarin.iOS Build Host fails to start iOS Simulator on Yosemite
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 3.7
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2014-10-17 05:02 UTC by Urs Vogel
Modified: 2015-01-19 07:05 UTC (History)
5 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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 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.

Related Links:

Description Urs Vogel 2014-10-17 05:02:41 UTC
Under Yosemite, the Xamarin.iOS Build Host fail to start the iOS Simulator when started from Visual Studio Ultimate 2013 on a Windows 8.1 VM running in Parallels on the same Mac. However, Visual Studio has paired with the Build Host since it shows all the devices in the Visual Studio Xamarin-iOS drop down.

Versions involved: 
Windows 8.1 latest Updates installed
Visual Studio Ultimate 2013 12.0.30723.0 Update 3
Mac OS X 10.10 (Oct 16th 2014)
Building Host
Xamarin iOS
Xamarin Studio on Mac 5.6 Build 273

Visual Studio shows this error:
Error	2	Failed to start application on the target simulator	Xamarin.iOS Extension	0	0	

The Build Host on the Mac log shows this:

[17-Oct-2014 10:49:36] Request handled in 64.971ms
[17-Oct-2014 10:49:39] Handling with command: [Info: CommmandUrl=Info] (11)
[17-Oct-2014 10:49:39] Attempting to acquire command execution lock, timeout set to 00:10:00
[17-Oct-2014 10:49:39] mtouch (959c1e4)

[17-Oct-2014 10:49:39] Command [Info: CommmandUrl=Info] finished (11)
[17-Oct-2014 10:49:39] Request handled in 4.582ms
[17-Oct-2014 10:49:39] Handling with command: [StartDebugProxy: CommmandUrl=StartDebugProxy] (11)
[17-Oct-2014 10:49:39] Attempting to acquire command execution lock, timeout set to 00:10:00
[17-Oct-2014 10:49:39] Command [StartDebugProxy: CommmandUrl=StartDebugProxy] finished (11)
[17-Oct-2014 10:49:39] Request handled in 23.691ms
[17-Oct-2014 10:49:39] Got connection from Visual Studio (log)
[17-Oct-2014 10:49:41] Handling with command: [DebugApplication: CommmandUrl=DebugApplication] (14)
[17-Oct-2014 10:49:41] Attempting to acquire command execution lock, timeout set to 00:10:00
[17-Oct-2014 10:49:41] Waiting for application to connect to us. Timeout set to 00:05:00
[17-Oct-2014 10:49:41] Starting /Developer/MonoTouch/usr/bin/mtouch -sdkroot "/Applications/Xcode.app/Contents/Developer" --launchsim "/Users/Urs/Library/Caches/Xamarin/mtbs/builds/Xam_CForms_02iOS/dbc6a5d2c5e7fe6b0c170efc43b5119e/bin/iPhoneSimulator/Debug/Xam_CForms_02iOS.app" -stdout "/Users/Urs/Library/Logs/Xamarin/MonoTouchVS/Simulator/Xam_CForms_02iOS/dbc6a5d2c5e7fe6b0c170efc43b5119e/out.log" -stderr "/Users/Urs/Library/Logs/Xamarin/MonoTouchVS/Simulator/Xam_CForms_02iOS/dbc6a5d2c5e7fe6b0c170efc43b5119e/err.log" --device=:v2:runtime=com.apple.CoreSimulator.SimRuntime.iOS-8-1,devicetype=com.apple.CoreSimulator.SimDeviceType.iPhone-5s -argument=-monodevelop-port -argument=49659 -sdk 8.1
[17-Oct-2014 10:49:42] Request handled in 60.386ms
[17-Oct-2014 10:49:43] stderr: error MT0024: Could not find required file '/Users/Urs/Library/Caches/Xamarin/mtbs/builds/Xam_CForms_02iOS/dbc6a5d2c5e7fe6b0c170efc43b5119e/bin/iPhoneSimulator/Debug/Xam_CForms_02iOS.app/Info.plist'.

[17-Oct-2014 10:49:43] Unable to establish debugger connection.
[17-Oct-2014 10:49:43] Received debug connection from Visual Studio: (sdb)
[17-Oct-2014 10:49:43] Received logging connection from Visual Studio : (output)
[17-Oct-2014 10:49:43] Application connected!
[17-Oct-2014 10:49:43] Finishing Output (log:writer) Thread...
[17-Oct-2014 10:49:43] Finishing Debug Thread (sdb:writer)...
[17-Oct-2014 10:49:43] Finishing Logging Thread (output:writer)...
[17-Oct-2014 10:49:43] Finishing Logging Thread (output:reader) ...
[17-Oct-2014 10:49:43] Finishing Debug Thread (sdb:reader)...
[17-Oct-2014 10:49:43] Command [DebugApplication: CommmandUrl=DebugApplication] finished (14)
[17-Oct-2014 10:49:43] Request handled in 1954.101ms
[17-Oct-2014 10:49:43] Exception: Exception type: System.OperationCanceledException
The operation was canceled.
  at Xamarin.MacDev.AggregateAsyncResult.CheckError (Boolean cancelled) [0x00000] in <filename unknown>:0 
  at Xamarin.MacDev.IPhoneCommandConnection.EndStartDebugger (IAsyncResult result, System.IO.Stream& transport, System.IO.Stream& output) [0x00000] in <filename unknown>:0 
  at Mtb.Server.Proxy.DebugProxy.StartDebugger_Callback (IAsyncResult result) [0x00000] in <filename unknown>:0 
[17-Oct-2014 10:49:43] Unable to establish debugger connection.
[17-Oct-2014 10:49:43] Exception: Exception type: System.ObjectDisposedException
The object was used after being disposed.
  at System.Net.Sockets.Socket.EndAccept (System.Byte[]& buffer, System.Int32& bytesTransferred, IAsyncResult asyncResult) [0x00000] in <filename unknown>:0 
  at System.Net.Sockets.Socket.EndAccept (IAsyncResult result) [0x00000] in <filename unknown>:0 
  at Xamarin.MacDev.IPhoneTcpCommandConnection.EndConnectStream (IAsyncResult result) [0x00000] in <filename unknown>:0 
  at Xamarin.MacDev.IPhoneCommandConnection.ExecuteCommand_ConnectedCommandStream (IAsyncResult ar) [0x00000] in <filename unknown>:0 
[17-Oct-2014 10:49:47] Request handled in 67.443ms
[17-Oct-2014 10:49:52] Request handled in 64.021ms
[17-Oct-2014 10:49:58] Request handled in 70.609ms
Comment 1 Urs Vogel 2014-10-17 05:09:34 UTC
Additional Version Information Apple Dev Tools:
iOS Simulator Version 8.1 (550.3)
Xcode Version 6.1 (6A1046a)
Comment 2 Urs Vogel 2014-10-19 11:35:29 UTC
Problem occurred after upgrade to Yosemite. Appears that VMs folder sharing properties in Parallels have been modified during the Yosemite upgrade.

Problem DISAPPEARS when re-assigning and saving the VMs folder sharing properties in Parallels.
Comment 3 Brendan Zagaeski (Xamarin Team, assistant) 2014-10-20 21:37:39 UTC
In case any other users come across this report first while searching for this problem, another possible cause of the "Could not find required file ... Info.plist" error is if the local side of the build has been run once before Visual Studio has been paired to the build host.

The workaround in that case is to clean and rebuild the project after connecting to the build host.

I've filed a bug for that other version of the problem here:
Comment 4 Saurabh 2015-01-19 07:05:47 UTC
As per Comment#2 changing the status to Verified.