Xcode - But... Where are our archives?

XcodeBuildCrashArchive

Xcode Problem Overview


I've submitted three versions of my app onto the App Store using the Build and Archive commands. But... Where are those archives?

I've just learnt that I just need them to be able to read crashlogs. My ~/Library/Developer/Xcode/Archives folder is empty (in fact there is one xarchive file inside it I've just generated now to test a crashlog reading).

Spotlight does not find any .xarchive.

I never been asked to delete or clear anything else than my project builds (Product - clean) when coding next version.

Xcode Solutions


Solution 1 - Xcode

  • Open the Organizer window in Xcode (menu Window > Organizer)
  • Click on the Archives icon in the top middle
  • Select the desired archive by app name and date
  • Click Show in Finder in the context menu

Solution 2 - Xcode

Archive Organizer

  • To open it: Xcode menu bar > Window > Organizer > Products > Archives
  • Path: The archives are stored in /Users/username/Library/Developer/Xcode/Archives/$DATE/Project Name Datetime.xcarchive, it's easier to just right click the archive to show path in the organizer though.

enter image description here

Solution 3 - Xcode

Archive location

By default location is on the same level as Derived Data folder

<some_path>/Library/Developer/Xcode/Archives
//e.g.
/Users/alex/Library/Developer/Xcode/Archives/2021-05-08/ServiceLocator 08.05.2021, 15.35.xcarchive

To change location

xcodebuild archive -archivePath "<some_path>/<some_name>.xcarchive" <...>
//or
Xcode -> Preferences... -> Locations -> Locations -> Archives 

https://i.stack.imgur.com/U35W7.png" height="200" />

To show Organizer

Window -> Organizer -> Archives

Solution 4 - Xcode

Just to add to this since I'm unable to edit @Codo's answer, but for my version of Xcode (12.3) there was no Archive icon in the top middle. Just a slight difference. Instead, going to Window > Organizer opened a window displaying all my Archives for the current project. Right clicking each shows a menu to delete Archive entries or you can Show in Finder.

Show in Finder shows mine are currently located at /Users/username/Library/Developer/Xcode/Archives and within that directory there's a folder for each date which contains an Archive.

Solution 5 - Xcode

if you choose any ios simulator iphone 7 or iphone 8 or any simulateur you have to change this select to ( Any ios Device ) after that the archive option will display

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionOliverView Question on Stackoverflow
Solution 1 - XcodeCodoView Answer on Stackoverflow
Solution 2 - XcodeBen ButterworthView Answer on Stackoverflow
Solution 3 - XcodeyoAlex5View Answer on Stackoverflow
Solution 4 - XcodeDwigtView Answer on Stackoverflow
Solution 5 - XcodeAbdel Rahman KamhawyView Answer on Stackoverflow