145

I want to extract the dSYM file from but when I click on "Download dSYMs..." in the Organizer I get the follow message: "There are no dSYMs available for download.".

I'm using Xcode 7.2 with a workspace generated by Cocoapods 0.39.

How can I get them?

enter image description here

13
  • Were you able to figure this out? I am getting the same issue and the dSYM inside the package is missing the ones I am looking for.
    – jhk
    Commented Feb 2, 2016 at 20:54
  • No, it's been a pain. I can't see any crashes for my app. This was probably introduced by Xcode 7.2. Commented Feb 2, 2016 at 21:03
  • Same issue here... if you make any progress please do post it here! Commented Feb 3, 2016 at 10:37
  • @Jordan Of course. Any ideas on your end? Commented Feb 3, 2016 at 11:42
  • @FelipePeña well I noticed when inspecting the .xcarchive that there already seemed to be a DSYM folder inside. It didn't work to desymbolicate the crash logs though... I'm wondering if somehow the app was built with dsym files, then when iTunes Connect recompiles with bit code and produces new dsysms or however it works, we can't download because for some reason we already had dsym files... ? Commented Feb 3, 2016 at 21:09

8 Answers 8

354

NON-BITCODE

Here's a GIF on how to get DSYMS, compress and upload to crashlytics/fabric

enter image description here

  1. Press Window > Organizer
  2. Right-click on your app> Show in Finder
  3. Right-click on first .xcarchive file > Show package contents

BITCODE ENABLED

You'll need to download dsyms from App Store Connect. The easiest would be to use fastlane

lane :refresh_dsyms do
    download_dsyms                  # Download dSYM files from App Store Connect
    
    upload_symbols_to_crashlytics   # Optional for uploading to Crashlytics
end
9
  • 1
    But why Xcode download option is not working? do you have any idea? Commented Oct 13, 2017 at 3:59
  • 1
    This didn't work for me directly from the package contents. I had to copy the dSYMs folder to another folder first and then compress it. See details in here stackoverflow.com/a/47193122/1203475.
    – David L
    Commented Nov 9, 2017 at 2:56
  • 1
    I needed to run this command in the /dSYM/ folder to compress: zip -r SymbolFiles.zip *.dSYM Commented Nov 20, 2017 at 3:31
  • 2
    The question is from "Download DSYMs" button. why it is not downloading by clicking the button? why we have to get it manually? Commented Nov 23, 2017 at 13:21
  • 1
    It is a different issue, but looks like you uploaded the wrong binary which doesn't match to what crashlytics is looking for
    – Ted
    Commented Dec 8, 2018 at 12:21
48

I think @Jordan is correct--it seems that iTunes Connect is recompiling apps with bitcode so that the UUID changes, and the dSYM inside the .xcarchive can't actually be used to symbolicate the app (this appears to be a new development).

You can download the correct dSYM from iTunes Connect. Login, go to My Apps, select your app, then tap on the Activity tab at the top. Tap on the relevant build, and, assuming the app was submitted with symbols in the first place, you should see the option to "Download dSYM."

The file you get is called dSYMs (without an extension) but it is in fact a zip file. Add the .zip extension, unzip, and you'll find your dSYM(s) inside.

(I needed to do this this week since Crashlytics was complaining about a missing dSYM.)

3
  • 3
    So I need to submit my app to iTunesConnect first to get the dSYM file and to upload it to fabric.io? Commented Nov 29, 2016 at 9:33
  • 35
    My app, which is in the app store currently, says "Includes Symbols: Yes" in iTunesConnect yet there is NO ability to download .dSYM
    – Jacksonkr
    Commented Sep 14, 2017 at 13:19
  • @swalkner I can't remember exactly. I want to say that I found my situation was not possible to fix :/
    – Jacksonkr
    Commented Nov 19, 2018 at 18:57
25

Actually you can't download dSYM file from iTunesConnect now. There is another way to get that file.

Xcode -> Window -> Organizer -> Show xcarchive file in Finder -> Right Click Your xcarchive file -> Select "Show Package Contents"

You can see your dSYM file now.

1
  • Seems like you can today... When you select a desired build, there is "download dsym" button.
    – Whirlwind
    Commented Mar 25, 2019 at 14:40
22

bitcode must be enabled

if you want to get your dSYM from iTunesConnect

  • Build Settings > Build Options > Enable Bitcode > YES
  • Select device "Generic iOS Device" (or anything that works)
  • Archive

When exporting from archive

  • CHECK "include app symbols for your application to receive symbolicated crash logs from Apple"
  • CHECK "include bitcode"

Upload using Application Loader

Once your app has been successfully uploaded to iTunesConnect you can go to iTunesConnect.com > MyApps > [YOUR APP] > Activity > All Builds > [YOUR BUILD] > General Information > Includes Symbols > Download dSYM

#xcode8.2.1 #osx10.12.6

3
  • 10
    True story. If you don't have bitcode enabled, Apple will merely show, "includes symbols: Yes" without the Download link. Commented Nov 29, 2018 at 1:20
  • 1
    True, Dan Rosenstark. For me, AFTER uploading to iTunesConnect, I had to use Xcode's Organiser and click the "Download dSYM" which didn't give an error, but apparently did nothing (no files appeared anywhere??), but then in iTunesConnect, the blue link appeared next to "Includes Symbols Yes". It's a maze.
    – legoblocks
    Commented Jun 11, 2020 at 16:05
  • Somehow the link doesn't appear in App Store Connect, even with dSYM and bitcode enabled. Only Includes Symbols: Yes
    – piotr_cz
    Commented Jun 1, 2022 at 10:15
11

I've found a solution from https://twittercommunity.com/t/not-matching-uuid-bitcode/61000/2

"Crashlytics was reporting missing dSYMs with UUID looking like this: 83889b11dedd363c8e5ee56233bcc90c. As I said, I followed the guide7 but I couldn't find that UUID. So I went in the iTunesConnect and I did the following:

  • Select the app
  • Choose the Activity tab on top
  • Select the build version Crashlytics is complaining about
  • Click the Download dSYM blue link

The downloaded file is called dSYM has no extension but it is actually a zip. So I added the zip extension and unzipped it. Inside the unzipped folder I found many dSYM files, one on which has called 83889B11-DEDD-363C-8E5E-E56233BCC90C.dSYM which matched the UUID Crashlytics was reporting as missing (even if formatted in a different way). Note also that this file is not inside the xcarchive.

Hope it can help!"

in my case, it works like charms

6
  • 4
    I don't see that blue link inside of iTunes Connect. I remember I saw this reply in another thread. Do you know what specific section is at? Commented Feb 22, 2016 at 19:27
  • @FelipePeña iTunesConnect -> My Apps -> "Your App" -> Activity -> All Builds -> Select Build -> Build Details Commented Mar 7, 2016 at 1:10
  • 2
    @spacemonkey Can't find anything there
    – atulkhatri
    Commented Jun 10, 2016 at 8:54
  • 2
    Same for me, there is no link to download the dSYMs
    – mixable
    Commented May 10, 2017 at 16:40
  • 1
    Wasted half of my day trying to find the source of the problem. In the end it was Apple started using .dsm extension for dSYM files. Renamed it to .zip as @Davide suggested. Tnx mate!
    – IvanMih
    Commented Jul 19, 2018 at 14:13
10

In my case, I could not find a dSYM file of my app in the Archives folder. If you face this, go to your Project Build Settings > Build Options > Debug Information Format and make sure it is set to DWARF with dSYM file

2
  • 5
    This is set, still "No dSYMs were found for Version x.x Build xx"
    – Jacksonkr
    Commented Sep 14, 2017 at 13:29
  • I have had the same issue, switching the above mentioned setting solved the problem, thanks! Commented Apr 12, 2019 at 5:54
3

If dSYMs folder in package contents is empty (Ted's answer), try to check:

  • Build Settings > Build Options > Enable Bitcode is set to YES (Jacksonkr's answer)
  • Build Settings > Build Options > Debug Information Format is set to DWARF with dSYM file (daisura99's answer)

Please check them both.

Then in show package contents -> dSYMs folder, this time, you should find something.

In my case, it worked.

1

Form latest updates you no need to upload dSYM files manually, automatic upload is done with below process.

Step-1: Goto Target-> Build Settings -> Search for "debug information format". Set Debug Information Format to DWARF with dSYM File for all your build types.

enter image description here

Step-2: Goto Build Phases -> Expand Run Script and add script & input files

In Script:

"${PODS_ROOT}/FirebaseCrashlytics/run"

In input files:

${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${TARGET_NAME}
    $(SRCROOT)/$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)

Example Screenshot:

enter image description here

Step-3: Finally add one more script to upload dSYM files

${PODS_ROOT}/FirebaseCrashlytics/upload-symbols -gsp 
      ${PROJECT_DIR}/Your_path/GoogleService-Info.plist -p ios 
      ${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}

enter image description here

Here, in the 2nd line of the script ${PROJECT_DIR}/Your_path/GoogleService-Info.plist -p ios update with your project path means your app schema name

If you got error while running the app follow my answer Xcode 10.2.1 Command PhaseScriptExecution failed with a nonzero exit code

Error:

 Command PhaseScriptExecution failed with a nonzero exit code
2
  • 1
    Step 3 runs the script when we install the pod but when we use the package that time which script needs to write for upload dSYM from XCode
    – S K
    Commented Jun 22, 2023 at 6:23
  • @ S K, I don't have idea, check with other answers.
    – Naresh
    Commented Jun 22, 2023 at 7:18

Not the answer you're looking for? Browse other questions tagged or ask your own question.