Search code examples
iphoneapp-storevisual-studio-mac

Visual Studio for Mac - Configuration doesn't target device. Your configuration doesn't target a valid iOS device


Error Message:

Configuration doesn't target device.
Your configuration doesn't target a valid iOS device

I want to publish an iPhone app to App Store. So, I tried to perform Archive for Publish an iPhone App by selecting at the top main menu bar:

Build > Archive for Publishing

I have already select a device from the drop down menu at the main top menu bar. But I still receive above error message. What should I do?

I don't have a physical real iPhone. All I use is the iPhone Simulator. Is it a must to use a real iPhone to sign the App and submit to App Store?

Update

A physical iOS (iPhone) device is no more needed to archive and submit app to AppStore.


Solution

  • The last option in the list of build devices is a Generic Device, under the heading Build Only Devices. This option works fine for those without a physical iPhone.