Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing UUID dSYM within the AppStore downloaded dSYMs (more targets app)

I face to the following issue with iOS app (XCode 10.3):

  • Crashlytics says that I have a missing dSYM, and provides the missing dSYM UUID (I have both required and optional UUIDs missing)
  • The app is BitCode app, and dSYMs are downloaded from AppStore, and uploaded to Crashlytics. I see many other crashes from the other dSYMs that were downloaded and de-symbolicate correctly.
  • The app is multi-target app. Before, when the app was just single target app, everything worked fine. The additional targets seems to be an issue.
  • All targets have BitCode and DWARF with dSYM selected
  • All targets call Crashlytics run in build phase (at least I believe I do this correctly)
  • Targets are watch app, watch app extension, Siri intent, Siri intent UI, and the iOS app widget.
  • I have manually opened the downloaded dSYM from AppStore and the missing dSYM UUID is really missing.
  • I also checked the locally built app archive, and the dSYM UUID is not there (yes, expected result)

Any idea, where to get the missing dSYM, would make a bit happier... Please.

like image 478
Michael Bernat Avatar asked Aug 26 '19 08:08

Michael Bernat


People also ask

How do I find missing dSYM?

Now, we start finding this missing file! This step requires the archived file of your App version. If you archive & upload the archive from your machine then we can easily find it in: Xcode > Window > Organizer > Archives. After finding the file, follow this step from Firebase crashlytics to upload it manually.

How do I install dSYM?

Upload the dSYM File to AppDynamics Using the UIFrom the Mobile App menu, click Configuration. Click Mobile App Configuration >. From dSYM Mappings, click Upload dSYM package file for iOS crashes. From the XCode dSYM package upload dialog, click Choose File.


1 Answers

Sometimes the UUIDs that are assigned on appstoreconnect are incorrect. The crash reports contain the correct ones -- i.e. the stack trace attributes a line to the correct binary image. In the case of the uploaded dsyms having incorrect UUIDs Crashlytics is not able to match the line in the stack trace to any uploaded dsyms so it flags them as missing.

But there is a way to rewrite the UUID of a dsym and then re-upload it to crashlytics.

Note: This method is risky. If you overwrite the dSYM's UUID with an incorrect one and then upload it to Crashlytics, there is no way to correct that mistake. So you need to be absolutely sure that you A) are looking for the correct binary image; and B) that you have the correct UUID.

Here is how to do it:

Step A: In Crashlytics:

  1. Note down the version of the build for which a dsym is missing
  2. Note down the UUID of the missing dsym

Step B: Find an unsymbolicated line in one of your crash files for that version:

(note: in most cases it's your app's binary image, in which case you can just skip all steps here and then just use your app's name as binary image)

  1. Open Xcode -> Window -> Organiser
  2. In the left-hand pane, select Crashes
  3. Use the drop-down menu in the top left-hand corner to select the version you are interested in
  4. Once all the crashes for that version are downloaded, locate the crash you are interested in
  5. Find the line in the crash report you are interested in and which is not symbolicated
  6. Note down the binary image

Step C-a: Locate and replace the dsym with the incorrect UUID manually:

  1. Open Xcode -> Window -> Organiser
  2. In the left-hand pane, select Archives
  3. Select the archive that corresponds to the version you noted down in Step A)
  4. In the right hand pane, select Download Debug Symbols
  5. Once finished downloading, in the Organiser right click the archive -> Show in Finder
  6. In Finder, right click the archive -> Show Package Contents
  7. Go to the dSYMs directory
  8. Optional: Sort the finder list by Size in DESC order
  9. Starting from the top, right click the first dsym file -> Show Package Contents
  10. Navigate to Contents -> Resources -> Dwarf
  11. Compare the name of the file inside the Dwarf directory with the binary image name you noted down in Step B) 6.
  12. If it matches, follow the steps outlined in this excellent writeup to replace the UUID manually
  13. If it doesn't match, repeat step 9 - 11, going through all dsym files until you found the right one

Step C-b: Locate and replace the dsym with the incorrect UUID automatically:

  1. Open Xcode -> Window -> Organiser
  2. In the left-hand pane, select Archives
  3. Select the archive that corresponds to the version you noted down in Step A)
  4. In the right hand pane, select Download Debug Symbols
  5. Once finished downloading, in the Organiser right click the archive -> Show in Finder
  6. In Finder, right click the archive -> Show Package Contents
  7. Go to the dSYMs directory
  8. Use this command line program to replace the UUID by providing the binary image name and correct UUID
like image 198
schmittsfn Avatar answered Oct 31 '22 16:10

schmittsfn