Bug 35162 - Visual Studio cannot find Simulator devices
Summary: Visual Studio cannot find Simulator devices
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.0.0 (C6)
Hardware: PC Windows
: Normal normal
Target Milestone: 4.2.0 (C8)
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-10-22 09:11 UTC by Tomasz Cielecki
Modified: 2016-06-28 01:51 UTC (History)
8 users (show)

Tags:
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:
Status:
VERIFIED FIXED

Description Tomasz Cielecki 2015-10-22 09:11:31 UTC
This seems related to https://bugzilla.xamarin.com/show_bug.cgi?id=35152

I have just installed XCode 7.1 on my Mac.

Xamarin.iOS 9.2.0.84 is installed on both machines. Also tried 9.3.0.243 on the mac.

When connecting to the Mac from VS2015 this nice exception occurs in the log:

Xamarin.Messaging.Client.MessagingClient Error: 0 : [2015-10-22 14:58:02.5720] An error occured on the receiver while executing a post for topic xvs/idb/4.0.0.1566/set-settings and client vs10824TCIEL
Xamarin.Messaging.Exceptions.MessagingRemoteException: An error occured on client IDB4001566 while executing a reply for topic xvs/idb/4.0.0.1566/set-settings ---> Xamarin.Messaging.Exceptions.MessagingException: An error occured on client IDB4001566 while executing a send for topic xvs/idb/4.0.0.1566/simulators-changed ---> System.FormatException: Unknown Simulator Device Type specified: IPadPro
   at Xamarin.MacDev.IPhoneSimulatorTarget..ctor (System.String name, System.String runtime, System.String deviceType) in <filename unknown>:line 0
   at Xamarin.Messaging.IDB.AppleSettingsProvider+<GetIOSDevices>d__8.MoveNext () in <filename unknown>:line 0
   at System.Linq.Enumerable+<ConcatIterator>c__IteratorE`1[TSource].MoveNext () in <filename unknown>:line 0
   at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].MoveNext () in <filename unknown>:line 0
   at System.Linq.Enumerable+<UnionIterator>c__Iterator11`1[TSource].MoveNext () in <filename unknown>:line 0
   at System.Linq.Enumerable+<UnionIterator>c__Iterator11`1[TSource].MoveNext () in <filename unknown>:line 0
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList (Newtonsoft.Json.JsonWriter writer, IEnumerable values, Newtonsoft.Json.Serialization.JsonArrayContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract collectionContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) in <filename unknown>:line 0
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonContract valueContract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) in <filename unknown>:line 0
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract collectionContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) in <filename unknown>:line 0
   --- End of inner exception stack trace ---
  at Xamarin.Messaging.Client.MessagingClient.Send[T] (Xamarin.Messaging.Client.T message, System.String topic, MessagePriority priority, Boolean retain) <0x86c4440 + 0x00307> in <filename unknown>:0 
  at Xamarin.Messaging.Client.MessagingClient.Send[T] (Xamarin.Messaging.Client.T message, Boolean retain) <0x866bf30 + 0x00093> in <filename unknown>:0 
  at Xamarin.Messaging.IDB.ListenerProvider.SendChanged (IMessagingClient client) <0x86cf590 + 0x00073> in <filename unknown>:0 
  at Xamarin.Messaging.IDB.ListenerProvider.SendSettingsChanged (IMessagingClient client, IAppleSettingsProvider settings) <0x8f7e538 + 0x00033> in <filename unknown>:0 
  at Xamarin.Messaging.IDB.ListenerProvider+<>c__DisplayClass0.<.ctor>b__2 (System.Object s, System.EventArgs e) <0x8f7e448 + 0x00097> in <filename unknown>:0 
  at (wrapper delegate-invoke) System.EventHandler`1[System.EventArgs]:invoke_void_object_TEventArgs (object,System.EventArgs)
  at Xamarin.Messaging.IDB.AppleSettingsProvider.SetXcodeHintPath (System.String xcodeHintPath) <0x8f7dd50 + 0x001d9> in <filename unknown>:0 
  at Xamarin.Messaging.IDB.Handlers.SetSettingsMessageHandler+<>c__DisplayClass0.<ExecuteAsync>b__1 () <0x8f7d9d8 + 0x0002b> in <filename unknown>:0 
  at System.Threading.Tasks.Task`1[TResult].InnerInvoke () <0x1922ba0 + 0x00054> in <filename unknown>:0 
  at System.Threading.Tasks.Task.Execute () <0x1935770 + 0x0004d> in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x188f600 + 0x00035> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x188cf30 + 0x000b7> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x188ce90 + 0x00087> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x188ce40 + 0x0003f> in <filename unknown>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x188d630 + 0x00024> in <filename unknown>:0 
  at Xamarin.Messaging.IDB.Handlers.SetSettingsMessageHandler+<ExecuteAsync>d__1.MoveNext () <0x8f7d290 + 0x0021b> in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x188f600 + 0x00035> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x188cf30 + 0x000b7> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x188ce90 + 0x00087> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x188ce40 + 0x0003f> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () <0x188d1b0 + 0x00024> in <filename unknown>:0 
  at Xamarin.Messaging.Client.RequestHandler`2+<HandleAsync>d__1[TMessage,TResult].MoveNext () <0x8f7c7a8 + 0x003c3> in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x188f600 + 0x00035> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x188cf30 + 0x000b7> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x188ce90 + 0x00087> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x188ce40 + 0x0003f> in <filename unknown>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x188d630 + 0x00024> in <filename unknown>:0 
  at Xamarin.Messaging.Client.MessageHandlerManager+<>c__DisplayClass6`2+<<RegisterHandlerAsync>b__9>d__0[TMessage,TResult].MoveNext () <0x8f7bdd0 + 0x002bb> in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () in <filename unknown>:line 0
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) in <filename unknown>:line 0
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) in <filename unknown>:line 0
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) in <filename unknown>:line 0
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () in <filename unknown>:line 0
   at Xamarin.Messaging.Client.MessagingClient+<ReplyAsync>d__1`2[TRequest,TResponse].MoveNext () in <filename unknown>:line 0
   --- End of inner exception stack trace ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__2`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__1`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.Messaging.Client.MessagingClient.<PostAsync>d__5`2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.VisualStudio.IOS.SettingsProvider.<RefreshSettingsAsync>d__1.MoveNext() in C:\Users\builder\data\lanes\2102\5abb0de8\source\XamarinVS\src\Core\VisualStudio.IOS\IDB\SettingsProvider.cs:line 76
Xamarin.VisualStudio.IOS.SettingsProvider Error: 0 : [2015-10-22 14:58:02.7900] Failed to set settings.
Xamarin.Messaging.Exceptions.MessagingException: An error occured on client IDB4001566 while executing a send for topic xvs/idb/4.0.0.1566/simulators-changed ---> System.FormatException: Unknown Simulator Device Type specified: IPadPro
   at Xamarin.MacDev.IPhoneSimulatorTarget..ctor (System.String name, System.String runtime, System.String deviceType) in <filename unknown>:line 0
   at Xamarin.Messaging.IDB.AppleSettingsProvider+<GetIOSDevices>d__8.MoveNext () in <filename unknown>:line 0
   at System.Linq.Enumerable+<ConcatIterator>c__IteratorE`1[TSource].MoveNext () in <filename unknown>:line 0
   at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].MoveNext () in <filename unknown>:line 0
   at System.Linq.Enumerable+<UnionIterator>c__Iterator11`1[TSource].MoveNext () in <filename unknown>:line 0
   at System.Linq.Enumerable+<UnionIterator>c__Iterator11`1[TSource].MoveNext () in <filename unknown>:line 0
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList (Newtonsoft.Json.JsonWriter writer, IEnumerable values, Newtonsoft.Json.Serialization.JsonArrayContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract collectionContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) in <filename unknown>:line 0
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonContract valueContract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) in <filename unknown>:line 0
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract collectionContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) in <filename unknown>:line 0
   --- End of inner exception stack trace ---
  at Xamarin.Messaging.Client.MessagingClient.Send[T] (Xamarin.Messaging.Client.T message, System.String topic, MessagePriority priority, Boolean retain) <0x86c4440 + 0x00307> in <filename unknown>:0 
  at Xamarin.Messaging.Client.MessagingClient.Send[T] (Xamarin.Messaging.Client.T message, Boolean retain) <0x866bf30 + 0x00093> in <filename unknown>:0 
  at Xamarin.Messaging.IDB.ListenerProvider.SendChanged (IMessagingClient client) <0x86cf590 + 0x00073> in <filename unknown>:0 
  at Xamarin.Messaging.IDB.ListenerProvider.SendSettingsChanged (IMessagingClient client, IAppleSettingsProvider settings) <0x8f7e538 + 0x00033> in <filename unknown>:0 
  at Xamarin.Messaging.IDB.ListenerProvider+<>c__DisplayClass0.<.ctor>b__2 (System.Object s, System.EventArgs e) <0x8f7e448 + 0x00097> in <filename unknown>:0 
  at (wrapper delegate-invoke) System.EventHandler`1[System.EventArgs]:invoke_void_object_TEventArgs (object,System.EventArgs)
  at Xamarin.Messaging.IDB.AppleSettingsProvider.SetXcodeHintPath (System.String xcodeHintPath) <0x8f7dd50 + 0x001d9> in <filename unknown>:0 
  at Xamarin.Messaging.IDB.Handlers.SetSettingsMessageHandler+<>c__DisplayClass0.<ExecuteAsync>b__1 () <0x8f7d9d8 + 0x0002b> in <filename unknown>:0 
  at System.Threading.Tasks.Task`1[TResult].InnerInvoke () <0x1922ba0 + 0x00054> in <filename unknown>:0 
  at System.Threading.Tasks.Task.Execute () <0x1935770 + 0x0004d> in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x188f600 + 0x00035> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x188cf30 + 0x000b7> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x188ce90 + 0x00087> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x188ce40 + 0x0003f> in <filename unknown>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x188d630 + 0x00024> in <filename unknown>:0 
  at Xamarin.Messaging.IDB.Handlers.SetSettingsMessageHandler+<ExecuteAsync>d__1.MoveNext () <0x8f7d290 + 0x0021b> in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x188f600 + 0x00035> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x188cf30 + 0x000b7> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x188ce90 + 0x00087> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x188ce40 + 0x0003f> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () <0x188d1b0 + 0x00024> in <filename unknown>:0 
  at Xamarin.Messaging.Client.RequestHandler`2+<HandleAsync>d__1[TMessage,TResult].MoveNext () <0x8f7c7a8 + 0x003c3> in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x188f600 + 0x00035> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) <0x188cf30 + 0x000b7> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) <0x188ce90 + 0x00087> in <filename unknown>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) <0x188ce40 + 0x0003f> in <filename unknown>:0 
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () <0x188d630 + 0x00024> in <filename unknown>:0 
  at Xamarin.Messaging.Client.MessageHandlerManager+<>c__DisplayClass6`2+<<RegisterHandlerAsync>b__9>d__0[TMessage,TResult].MoveNext () <0x8f7bdd0 + 0x002bb> in <filename unknown>:0 
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () in <filename unknown>:line 0
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) in <filename unknown>:line 0
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) in <filename unknown>:line 0
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) in <filename unknown>:line 0
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () in <filename unknown>:line 0
   at Xamarin.Messaging.Client.MessagingClient+<ReplyAsync>d__1`2[TRequest,TResponse].MoveNext () in <filename unknown>:line 0


It does not like the iPadPro simulator entry.
Comment 1 René 2015-10-27 10:31:41 UTC
No exception here but VS2015 simply does not list any Simulators. The "Play" button just shows "Start".
If I click, it builds and afterwards tells me no Simulator has been selected.


Not sure if related; I see this in the logs:

Xamarin.Messaging.VisualStudio.MessagingService+UploadFileLogger Information: 0 : [2015-10-27 15:26:50.3132] Uploaded Designer 4.0.0.1610 100%
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2015-10-27 15:26:50.4538] Starting Agent Designer 4.0.0.1610...
Xamarin.Messaging.Client.Ssh.SshCommandRunner Warning: 0 : [2015-10-27 15:26:50.6101] Failed to execute 'ls /usr/bin/mono': ExitStatus=1
Xamarin.Messaging.Client.Ssh.SshCommandRunner Warning: 0 : [2015-10-27 15:26:50.7663] ls: /usr/bin/mono: No such file or directory

Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2015-10-27 15:26:50.9385] Agent Designer 4.0.0.1610 is running

Build output from VS:

1>------ Build started: Project: App1, Configuration: Debug iPhoneSimulator ------
1>  Generated session id: 0123a3eae6d164b5d9b9f2c925662afe
1>  Generated build app name: App1
1>  Connecting to Mac server 192.168.178.59...
1>  App1 -> \\vmware-host\shared folders\dokumente\tmp\App1\App1\bin\iPhoneSimulator\Debug\App1.exe
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Comment 2 frontend 2015-10-28 05:43:04 UTC
To resolve this, I removed the iPad pro and apple TV devices from the devices list in xcode. The list would then populate on visual studio with all other devices.
Comment 3 Tomasz Cielecki 2015-10-28 05:44:48 UTC
Suggestion. Don't use enums for simulator types and use string constants instead.