John L.
John L.

Reputation: 1953

Xamarin iOS Debugging

I am trying to debug a Xamarin application on my iPhone which is connected to my Windows machine but Visual Studio does not display my iPhone in the options list. It displays an option named "Device" and when I click debug choosing it, "please select a valid device" warning appears.

From the image shown on https://developer.xamarin.com/guides/ios/deployment,_testing,_and_metrics/debugging_in_xamarin_ios/, it seems like Xamarin supports debugging on an iPhone connected to the Windows machine (it shows "Amy's iPhone 6" on the list) but I can't have VS list my device. What can be the problem?

Upvotes: 0

Views: 250

Answers (1)

Stephan
Stephan

Reputation: 2039

As of now, you can not compile or deploy apps for iOS on Windows. Your Windows machine where you develop the Xamarin app on needs to be connected to a MacOS device. When you hit Debug the iOS compiler on MacOS will compile the code and create the app package. Your iPhone needs to be connected there as well. See here for more info on that.

https://developer.xamarin.com/guides/ios/getting_started/installation/windows/

Apple does not allow to build apps for their platforms on other operating systems. So even if this would technically be possible, you will always need a MacOS for this.

Upvotes: 1

Related Questions