No devices attached in xamarin VisualStudio for ios

21,601

Solution 1

Are you sure the device is connected to the Mac and not the Windows machine? Have you tried debugging from that same device from Xamarin Studio on the Mac?

Solution 2

I know this question has already been answered, but i found it when i had a problem, and it did not help... but i did find the solution:

Under the debugging menu in VS2012, click on Configuration Manager

Configuration Manager Menu

make sure that iPhone Simulator (or iPad, if you want) is set...

enter image description here

Default seems to be looking for a physical device...

hope this helps.

Solution 3

Had the same problem. Issue was when i loaded my solution, visual studio 2012 decided to choose a library project as the 'Startup project'.

Rt Clicked the ios project, chose 'Set as StartUp Project' and the device list was populated.

P.S: Visual Studio you should be old enough to figure this out by now.

Solution 4

When I ran into this problem, I had another instance of visual studio running which was connected to the Mac.

Apparently you can only have on VS instance connected at a time.

Check your server log in Visual Studio output window for some more clues:

enter image description here

Closing the other instance of Visual Studio allowed me to connect in the instance I wanted to debug in

Solution 5

I discovered something missing. For me, in Visual Studio 2013, for some reason they have removed Solution Platforms from the toolbar. This makes it impossible to switch from iPhone to iPhoneSimulator without opening Configuration Manager. So, to fix this.

Click TOOLS/Customize then select the 'Commands' tab then select the 'Toolbar:' radio button and click the dropdown to the right of it and select 'Standard' as the toolbar you're working on.

Now, click 'Add Command' and select 'Build' from the catagories on the left and then scroll down commands until you find 'Solution Platforms'. Select that one and click OK. Then click the 'Close' button. You will now see an additional dropdown next to the Solution Configurations dropdown on your Standard Toolbar.

This will allow you to easily switch from iPhoneSimulator and iPhone. Use iPhone when you want to plug in an actual device, and use iPhoneSimulator when you want to pick a simulated device.

Hope this helps somebody out. I too have spent lots of time trying to figure this one out when I went from a device and was trying to use the simulator instead.

Share:
21,601
clement
Author by

clement

Experienced in WEB and Mobile applications

Updated on February 11, 2020

Comments

  • clement
    clement over 4 years

    I'm having real trouble when I try to use the IOS emulator from the visual studio. So I created a hello world app in VS using xamarin (latest stable version), I set the project as main project, and When I refresh the connexion with the mac, I can't select the device that should be shown in the selectList. The message is "No device attached" :

    error-picture

    And if I try to use xamarin studio on the host mac, all is okay, the sample app builds on the iphone emulator:

    on mac host

    Thanks to help me !