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?
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 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.
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:
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.
One possible solution - turn off Parallelize Build in Scheme options.
Just move Crashlytics build phase to bottom.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With