5

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.

mjb
  • 7,649
  • 8
  • 44
  • 60

3 Answers3

5

You need to plug in a real physical iPhone into the Mac Laptop. and target it as target deploy device. Then, this problem will solve.

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

For build device, select "Any iOS Device (arm64, armv7)" or Generic Device

mjb
  • 7,649
  • 8
  • 44
  • 60
  • what if I don't have an iOS device? – Poornesh V Sep 23 '20 at 17:56
  • @PoorneshV Then, you will see what I see in the first place as mentioned in the question. – mjb Sep 24 '20 at 03:28
  • @PoorneshV You may go to ebay and buy a 2nd hand (used) iOS device. which will be lot more cheaper than buying a brand new iOS device. – mjb Sep 24 '20 at 03:29
  • You can use a cloud service like MacInCloud, in which case you must select iPhone when you archive, and not iPhoneSimulator (which caused the error message for me) – Savage Aug 17 '21 at 19:07
  • @PoorneshV Update: A physical iOS (iPhone) device is no more needed to archive and submit app to AppStore. – mjb Mar 20 '22 at 23:40
  • @Savage Update: A physical iOS (iPhone) device is no more needed to archive and submit app to AppStore. – mjb Mar 20 '22 at 23:40
4

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.

Bill Needels
  • 505
  • 4
  • 13
0

Dont know if this is still an issue, but I ran into that issue today: the problemn was that in the fourth column it didnt say "remote device". Click on in so it reads: Release, iPhone, APPNAM.ios, Remote device.

Than your good.

JuTo
  • 25
  • 4