Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When I "Build for archive" in Xcode 4, where does the file go?

When I "Build for archive" in Xcode 4, where does the file go? As in, where on my computer is the archived app saved?

Thanks

like image 241
Darren Findlay Avatar asked Mar 26 '11 19:03

Darren Findlay


People also ask

Where do Xcode archives go?

Archive Organizer Path: The archives are stored in /Users/username/Library/Developer/Xcode/Archives/$DATE/Project Name Datetime.

What does archive in Xcode do?

It archives your Xcode project by running the xcodebuild archive command and exports the archive into an . ipa file with the xcodebuild -exportArchive command. This . ipa file can be shared and installed on test devices, or uploaded to App Store Connect.

Do I need to Build before archive Xcode?

Make sure your build is successfulBefore beginning to archive your build, you need to make sure that the build is successful not only for Debug, for also for Release.

How do I archive applications in Xcode?

Archive your App In Xcode with your project open, select the simulator (button near the top of the window next to your project name, typically named as a specific type of iPhone) – change it to Generic iOS Device. Open the Product menu and choose Archive. You will see the archive information. Click Validate App.


1 Answers

It depends on your build location goes (see Xcode > Preferences ... > Locations).

Note that "Build for Archive" doesn't archive your work in the "Archive Location" you enter there ... it just builds it as if it was being archived (so with the same pre/post-scripts being run, the right Configuration, and in your normal building location). To actually archive your work, you need to select plain old "Archive" instead of "Build for Archive".

Hope this helps.

like image 65
pho0 Avatar answered Oct 11 '22 19:10

pho0