Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Creating an Archive


I am totally new to xcode, I have created an application and now i am trying to create an archive so i can send the archived app to someone. I have been unable to create the archive; I can't get the commands or process correct in order to create the archive, can someone help.

1 Answer

Daniel Sattler
Daniel Sattler
4,867 Points

Hello and welcome to the world of development ;-)

Congrats to your first App. It´s quiet normal that the process of actually saving the file for submit is a bit confusing in the beginning.

Here´s what has to be done in order to be able to submit to the App Store (assuming the App itself is done):

  1. Make sure to set up a bundle certificate / provisioning Profile in developer.apple.com

  2. Make sure you´ve added a new App in itunesconnect.apple.com using above bundle id.

  3. Back in Xcode go to the General Section and place the bundle id you´ve used in itunesconnect

  4. Then go to the Build Settings Section and set The Code Signing to iOS Distribution

  5. Make sure you selected "iOS Device" as Target

  6. Then go to Product -> Archive and wait :-)

Once the archive is created the organizer will show up where you can either validate or submit straight away to the app store.

In case the Archive process has finished but the organizer won´t show up for any reason, you can open it from the Top Menu -> Window -> Organizer.

I hope this helped a little bit.