No devices attached in xamarin VisualStudio for io

2019-04-03 05:03发布

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 !

8条回答
闹够了就滚
2楼-- · 2019-04-03 05:26

Different things worked for me (Windows 8.1 & Visual Studio 2013):

  • Restart Visual Studio
  • Set 'iPhoneSimulator' as platform (only working one)
  • In Properties - iOS Application change 'Deployment Target' version to some lower number (6.0 worked for me).
查看更多
做自己的国王
3楼-- · 2019-04-03 05:27

As well as checking you have the right startup project selected as per @Chamkila's answer, check that you haven't accidentally broken your project's Info.plist file by attempting to open it through Visual Studio.

查看更多
登录 后发表回答