Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do I need an iOS device to 'Archive' Xcode Project?

Tags:

xcode

ios

I'm a rookie iOS developer trying to launch my first app, I've been digging on StackOverflow for long to find answers - but none worked. There are 3 key points to bear in mind...

  1. I don't actually own an iOS device, so far I've just been using simulators to test the app

  2. I have all certificates and provisioning ones too.

  3. I've already created a profile on iTunes Connect to upload my project into.

So here are the problems

This is a screenshot of the errors that I've been getting.

  1. It says that I need to plug in a device and have Xcode register it, but I don't have an iOS device at all.

  2. I've created the certificates and all needed in Developer.Apple.com so why is it saying it couldn't find any?

  3. I also get an additional error, here are the errors:

All errors

Just to let you know, I honestly have been scouring this site for answers, trying all I could but the 3 errors above simply don't go away.

I'm ready to publish the app, but it just won't 'Archive' :( Please help!

like image 878
Mini Sini Pi Avatar asked Nov 08 '22 22:11

Mini Sini Pi


1 Answers

Yes, you don't need a real device to publish an app

The problem you're facing is choosing the right provisioning profile. You need to create: + A Production Certificate + An AppID match with your app bundle + A Production Provisioning profile from your Cert & AppID

I recommend you should read carefully to understand what is provisioning profile: https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingProfiles/MaintainingProfiles.html

and how to publish app https://code.tutsplus.com/tutorials/how-to-submit-an-ios-app-to-the-app-store--mobile-16812

Good luck

like image 59
Tran Quan Avatar answered Nov 14 '22 22:11

Tran Quan