Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scheme with multiple targets -> Crashlytics -> Unable to copy dSym file

I am building a scheme with multiple targets for Archive.

If I build every single target with corresponding scheme alone, it works just fine.

However, when I am building them altogether in one scheme I get error from crashlytics:

2014-05-13 16:47:43.453 run[52789:507] Unable to copy dSYM at path /Users/miroslavkutak/Library/Developer/Xcode/DerivedData/ConTAGme-cohfutczhamcdpcbnpdrtbbzeefh/Build/Intermediates/ArchiveIntermediates/AppStore/BuildProductsPath/Release-iphoneos to path /Users/miroslavkutak/Library/Caches/com.crashlytics.mac/5b91b14e832a7b1c29441ec5ba109810/builds/0DE12720-9BDE-4BEA-806D-CFD3B9FA119E/travel.app.dSYM Error Domain=NSCocoaErrorDomain Code=4 "The file “DWARF” doesn’t exist." UserInfo=0x1001022c0 {NSSourceFilePathErrorKey=/Users/miroslavkutak/Library/Developer/Xcode/DerivedData/ConTAGme-cohfutczhamcdpcbnpdrtbbzeefh/Build/Intermediates/ArchiveIntermediates/AppStore/BuildProductsPath/Release-iphoneos/travel.app.dSYM/Contents/Resources/DWARF, NSUserStringVariant=(

Any ideas?

like image 581
Miroslav Kuťák Avatar asked May 13 '14 15:05

Miroslav Kuťák


People also ask

How do I automate uploading dsyms to Crashlytics?

There are a couple of fastlane tools that will help you automate the process of uploading dSYMs to Crashlytics: actions, lanes, and Fastfiles. An action is one of the building blocks of fastlane. Each action performs a single command, such as running tests or performing code validation. One or more actions can be included in a lane.

Why do we need to fix the missing dSYM files?

Why do we need to fix this? The missing dSYM files cause the Firebase Crashlytics cannot process your crash report, it needs dSYM files to symbolicate the crash report from memory addresses to human-readable informations, for example what is function name, file name or the number line causes the crash.

How to add dSYM files to Firebase Crashlytics in flutter?

Add this script either to your configuration file or in your post-publish script in the Flutter workflow editor to locate and upload dSYM files to Firebase Crashlytics. For Native iOS apps, in the case of using SwiftPackageManager (SPM) instead of CocoaPods, the following script needs to be added in a post-publishing script:

How to upload dSYM files when bitcode setting is disabled?

If your app disables the Bitcode setting then you have to add a build phase script to upload the dSYM files automatically. Somehow, this step misses some dSYM files, we have to find the missing one then upload it manually.


2 Answers

One possible solution - turn off Parallelize Build in Scheme options.

like image 172
Miroslav Kuťák Avatar answered Sep 22 '22 17:09

Miroslav Kuťák


Just move Crashlytics build phase to bottom.

like image 37
adnako Avatar answered Sep 18 '22 17:09

adnako