No Devices Attached for iOS after update

I have just updated Xamarin and XCode and even after restarting both the Mac and PC Visual Studio reports that there are No Devices Attached.
This setup was working before I upgraded. The reason I decided to upgrade is because I couldn't debug devices running iOS8.
There is a device attached, an iPod running iOS8. This shows up on the Mac in 'Image Capture'.
Visual Studio is communication with the Xamarin.iOS Build Host, because it is reporting that there is a minor version mismatch, 8.0.0.63 on the Mac and 8.0.62.0 on the PC. However there are no more stable updates available for either platform.
"There is a minor mismatch between the installed Xamarin.iOS (version 8.0.0.63) on the Mac Build Host 192.168.0.175 and the local Xamarin.iOS 8.0.62.0. When applying updates, make sure to keep both the Mac and Windows in sync."

When I look at the 'Mac Server Log' in Visual Studio's Output window I see the following messages repeating every couple of seconds:

[30-Sep-2014 13:13:43] Apple SDK developer root: /Applications/Xcode.app/Contents/Developer
[30-Sep-2014 13:13:43] Server IP Address : 192.168.0.175
[30-Sep-2014 13:13:43] Handling with command: [Info: CommmandUrl=Info] (10)
[30-Sep-2014 13:13:43] Attempting to acquire command execution lock, timeout set to 00:10:00
[30-Sep-2014 13:13:44] Starting /Developer/MonoTouch/usr/bin/mtouch --version
[30-Sep-2014 13:13:44] stdout: mtouch 8.0.0.63 (58b46df)
[30-Sep-2014 13:13:44] mtouch 8.0.0.63 (58b46df)
[30-Sep-2014 13:13:44] Command [Info: CommmandUrl=Info] finished (10)
[30-Sep-2014 13:13:44] Request handled in 1088.819ms
[30-Sep-2014 13:13:44] Handling with command: [Login: CommmandUrl=Login] (10)
[30-Sep-2014 13:13:44] Attempting to acquire command execution lock, timeout set to 00:10:00
[30-Sep-2014 13:13:44] Login process initiated, returning UUID for pairing.
[30-Sep-2014 13:13:44] Command [Login: CommmandUrl=Login] finished (10)
[30-Sep-2014 13:13:44] Request handled in 3.984ms
[30-Sep-2014 13:13:44] Handling with command: [Login: CommmandUrl=Login] (10)
[30-Sep-2014 13:13:44] Attempting to acquire command execution lock, timeout set to 00:10:00
[30-Sep-2014 13:13:44] Command [Login: CommmandUrl=Login] finished (10)
[30-Sep-2014 13:13:44] Request handled in 72.231ms
[30-Sep-2014 13:13:44] Got connection from Visual Studio (log)
tem.Linq.Enumerable.ToList[Device] (IEnumerable`1 source) [0x00000] in <filename unknown>:0 
  at Mtb.Server.DeviceListener.GetDevices () [0x00000] in <filename unknown>:0 
  at Mtb.Server.Commands.ListDevices.GetDevices () [0x00000] in <filename unknown>:0 
  at Mtb.Server.Commands.ListDevices.HandleRequest (ILoggingHelper logger, System.Object commandRequestState) [0x00000] in <filename unknown>:0 
  at Mtb.Server.BaseCommand.OnRequest (System.Net.HttpListenerContext context, System.Object commandRequestState) [0x00000] in <filename unknown>:0 
  at Mtb.Server.Listener.OnRequest (System.Object state) [0x00000] in <filename unknown>:0 
[30-Sep-2014 13:13:49] Request handled in 41.913ms
erver.Commands.ListDevices.GetDevices () [0x00000] in <filename unknown>:0 
  at Mtb.Server.Commands.ListDevices.HandleRequest (ILoggingHelper logger, System.Object commandRequestState) [0x00000] in <filename unknown>:0 
  at Mtb.Server.BaseCommand.OnRequest (System.Net.HttpListenerContext context, System.Object commandRequestState) [0x00000] in <filename unknown>:0 
  at Mtb.Server.Listener.OnRequest (System.Object state) [0x00000] in <filename unknown>:0 
[30-Sep-2014 13:13:54] Request handled in 0.563ms
erver.Commands.ListDevices.GetDevices () [0x00000] in <filename unknown>:0 
  at Mtb.Server.Commands.ListDevices.HandleRequest (ILoggingHelper logger, System.Object commandRequestState) [0x00000] in <filename unknown>:0 
  at Mtb.Server.BaseCommand.OnRequest (System.Net.HttpListenerContext context, System.Object commandRequestState) [0x00000] in <filename unknown>:0 
  at Mtb.Server.Listener.OnRequest (System.Object state) [0x00000] in <filename unknown>:0 
[30-Sep-2014 13:13:59] Request handled in 0.671ms
erver.Commands.ListDevices.GetDevices () [0x00000] in <filename unknown>:0 
  at Mtb.Server.Commands.ListDevices.HandleRequest (ILoggingHelper logger, System.Object commandRequestState) [0x00000] in <filename unknown>:0 
  at Mtb.Server.BaseCommand.OnRequest (System.Net.HttpListenerContext context, System.Object commandRequestState) [0x00000] in <filename unknown>:0 
  at Mtb.Server.Listener.OnRequest (System.Object state) [0x00000] in <filename unknown>:0 
[30-Sep-2014 13:14:04] Request handled in 0.778ms

Does anybody have any ideas on how I can resolve this ?

Versions:
Visual Studio 2013 Update 3
Xamarin (PC) 3.6.253.0 (Mac) 5.4 (build 240)
Xamarin.Android (PC) 4.16.0.17
Xamarin.iOS (PC) 8.0.62.0

Thanks very much,

Matt

Posts

  • I have the same setup, and the same problem.

  • Same setup, same problem. I have seen the problem both with the simulator and a real device.

    By clicking the "Refresh build server info" a number of times, I sometimes manage to get the device list.

  • I've tried clicking on refresh loads of time but that doesn't seem to work for me.
    I'm wondering if it might be a problem outside of our ability to fix, I have just found this message is being logged on the Mac every few seconds. It seems to say that there is a bug in the software.

    [30-Sep-2014 15:35:43] Request handled in 0.648ms
    [30-Sep-2014 15:35:48] Error: Command [ListDevices: CommmandUrl=ListDevices] failed.
    [30-Sep-2014 15:35:48] Exception: Exception type: System.ArgumentNullException
    Argument cannot be null.
    Parameter name: version
      at System.Version..ctor (System.String version) [0x00000] in <filename unknown>:0 
      at Mtb.Server.DeviceListener.<GetDevices>m__1 (Xamarin.MacDev.IPhoneDevice d) [0x00000] in <filename unknown>:0 
      at System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[Xamarin.MacDev.IPhoneDevice,Mtb.Server.Device].MoveNext () [0x00000] in <filename unknown>:0 
      at System.Collections.Generic.List`1[Mtb.Server.Device].AddEnumerable (IEnumerable`1 enumerable) [0x00000] in <filename unknown>:0 
      at System.Collections.Generic.List`1[Mtb.Server.Device]..ctor (IEnumerable`1 collection) [0x00000] in <filename unknown>:0 
      at System.Linq.Enumerable.ToList[Device] (IEnumerable`1 source) [0x00000] in <filename unknown>:0 
      at Mtb.Server.DeviceListener.GetDevices () [0x00000] in <filename unknown>:0 
      at Mtb.Server.Commands.ListDevices.GetDevices () [0x00000] in <filename unknown>:0 
      at Mtb.Server.Commands.ListDevices.HandleRequest (ILoggingHelper logger, System.Object commandRequestState) [0x00000] in <filename unknown>:0 
      at Mtb.Server.BaseCommand.OnRequest (System.Net.HttpListenerContext context, System.Object commandRequestState) [0x00000] in <filename unknown>:0 
      at Mtb.Server.Listener.OnRequest (System.Object state) [0x00000] in <filename unknown>:0 
    [30-Sep-2014 15:35:48] Request handled in 0.654ms
    
  • There is a similar thread (http://forums.xamarin.com/discussion/24762/no-devices-attached-trying-to-debug-ios-app) which suggests running the full installer on the PC again. I tried this, but without success.
    The fault also affects my installation of Visual Studio 2010.
    I've submitted a support request.

  • KashifShaikhKashifShaikh CAMember ✭✭

    I get this problem too, but I am unable to Deploy to iOS devices. Under the solution settings the "Deploy" checkbox for iOS project is grayed out.

    So the project builds, I can see the device list, but can't deploy and run.

    See attached screenshot.

  • BrendanZagaeskiBrendanZagaeski USForum Administrator, Xamarin Team Xamurai

    @KashifShaikh‌, the issue with the greyed out checkboxes would best be discussed in its own forum thread. Note that it's also generally discouraged to post the same question across multiple forum threads (1, 2), but it looks like these are your first posts, so no worries about that!

    That said, the greyed out checkboxes is intentional, and not itself the cause of any problems. I've posted a new thread specifically for that issue:
    http://forums.xamarin.com/discussion/25205/intentional-deploy-checkboxes-for-xamarin-ios-projects-cannot-be-checked

    If you're having trouble building or deploying, you'll need to check through the other logs, and possibly contact support, as mentioned here and here. Thanks for the report!

  • BrendanZagaeskiBrendanZagaeski USForum Administrator, Xamarin Team Xamurai
    edited September 2014

    For everyone on the thread, thanks for the reports! The new hotfix just released to the stable channel (Xamarin 3.6.262) should significantly improve or eliminate the No Devices Attached problem.

  • I have just tried a hot fix that Xamarin sent to me and it does eliminate the problem I had.
    I think thats one hell of a response, fixed within 24 hours!

  • FndFnd TWMember

    is Xamarin 3.6.262 released?my VS2013's Xamarin version still 3.0.54.0,
    And I still have this problem after update to iOS8

    Log generated on 2014/10/3 AM 10:20:25

    There is no valid device selected (Generic)
    Please select a valid device on the Target iOS Device ComboBox

  • BrendanZagaeskiBrendanZagaeski USForum Administrator, Xamarin Team Xamurai

    In case any users find this thread first when looking for the latest information about the "No Devices Attached" error where an ArgumentNullException from System.Version..ctor appears in the mtbserver.log file, let's continue any further conversation about that on this new thread:

    http://forums.xamarin.com/discussion/25636/no-devices-attached-due-to-argumentnullexception-in-system-version-ctor

    I'll close this thread for now.

This discussion has been closed.