258

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.

Oliver
  • 22,516
  • 33
  • 136
  • 229
  • [![enter image description here](https://i.stack.imgur.com/Rd4wj.png)](https://i.stack.imgur.com/Rd4wj.png) This is the keyboard shortcut that I use – Danielvgftv May 10 '19 at 22:37
  • I appreciate that you added the location of the Archives folder. I was missing archives, and it was because I accidentally deleted that folder with my DerivedData folder... Upon recovering that folder (thankfully still in the trash), my archives showed correctly in the Window->Organizer->Archives area. – leanne Jun 01 '20 at 17:24

5 Answers5

540
  • 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
Cœur
  • 34,719
  • 24
  • 185
  • 251
Codo
  • 70,546
  • 16
  • 157
  • 193
  • That's what I did, nothing but the last one I've generated for test purpose. – Oliver Sep 11 '11 at 09:27
  • Did you upgrade XCode since you built the missing archives? In particular, was it a major upgrade such as from XCode 3 to 4 or with a prior uninstall of XCode? – Codo Sep 11 '11 at 09:59
  • I'm afraid your archives are gone then (for whatever reasons). – Codo Sep 11 '11 at 18:04
  • Uhhh, what ? But.... Well, last chance, I see that spotlight don't find the last one I have under the eyes. How may I solve this problem to be able to check if there are NO xarchive on my mac ? – Oliver Sep 11 '11 at 21:12
  • 126
    Window > Organizer... Yea, because that makes obvious sense Apple. – Michael Apr 20 '16 at 22:24
  • where that 'window' thing is – Manjeet Singh Mar 03 '17 at 20:35
  • 46
    Well done apple. Another step in the process of making stuff impossible... – noelicus Jul 25 '17 at 09:17
  • 8
    I just did this a week ago and now i'm back here again. why is this ui hard to remember? – King Friday May 18 '18 at 02:35
  • 35
    Funny how a company like Apple can make the most well-thought, intuitive, simple interfaces for users, but the biggest piles of unusable shit for developers. – iuliu.net Nov 16 '18 at 13:20
  • 3
    Could not agree more - xcode in general very special in that sense – Ride Sun Nov 18 '20 at 23:32
21

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

Ben Butterworth
  • 13,650
  • 4
  • 61
  • 95
3

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 

To show Organizer

Window -> Organizer -> Archives
yoAlex5
  • 21,739
  • 5
  • 148
  • 151
2

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.

Dwigt
  • 375
  • 2
  • 13
0

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