Error Message: Upload missing dSYMs to see crashes from 1 versions. Versions affected: 1.0 (1)
I am trying to implement Firebase Crashlytic
I have created Medium Story about dSYMs upload.
Stap by step how to upload with the terminal
Medium Link: https://medium.com/@petarlemajic/firebase-dsyms-upload-1cf432c475f7 I will be happy if this helps somebody. Cheers!
In my case, I have done the following things and it worked:
Select 'Run script only when installing' in Build Phases -> Run Script (Shell = ${PODS_ROOT}/Fabric/run)
Build the app
Now you can find the .dsym file in the path, /Library/Developer/Xcode/DerivedData/XXX-arctjcalvfslmbakanpyivuuxjmm/Build/Products/Release-iphoneos
Upload the zipped .dsym file to firebase console
After few minutes, you can find the crash reports
NOTE:
If you are using the dynamic library is your project using cocoa pods or any other tool then Firebase needs Duplicate Symbol files to locate the faulty code in your library. If you want to read more about dSysms read this : https://stackoverflow.com/questions/3656391/whats-the-dsym-and-how-to-use-it-ios-sdk
To find dsysm folder, you first need the .ipa file on which crash was reported on your firebase. In your case, I suppose you are running on the simulator for testing. To get IPA follow these steps: How to create ipa in xcode 6 without Apple Developer account?
When you reach .iPA then right click and select show package contents, or follow this link: iphone: Where the .dSYM file is located in crash report
There you will find system folder. Upload this folder to firebase crashalytics.
Hope this helps!
According to firebase documents, instead of uploading dsym
You can also provide your app's built Info.plist
location to the build phase's Input Files field:
$(SRCROOT)/$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)
They fixed bug and document updated
Only and simple way to upload DSYMS files to Firebase Crashlytics. (June 1 - 2020)
Download appDsyms archive from App Store
1.1 Login: https://appstoreconnect.apple.com
1.2 Go to: MyApps -> Choose your app -> Activity (top left) -> Select version you want to get crashes -> Includes Symbols: press -> Download dSYM
.
Open terminal, drag and drop 3 files on terminal on this order:
2.1 drag an drop: "upload-symbols" which can be found in
/project/Pods/FirebaseCrashlytics/upload-symbols
2.2 write " -gsp
"
2.3 drag an drop: "GoogleService-Info.plist" which can be found in /project/GoogleService-Info.plist
2.4 write " -p ios
"
2.5 drag an drop: "appDsyms" folder which usually is in Download folder /Users/username/Downloads/appDsyms
2.6 Press Enter
In terminal the complete command should include -gsp
and -p ios
, full command looks like this: 2.1 -gsp 2.3 -p ios 2.5
/project/Pods/FirebaseCrashlytics/upload-symbols -gsp /project/GoogleService-Info.plist -p ios /Users/username/Downloads/appDsyms
All Set, wait for upload in terminal!
One way how to get file or folder location with drag and drop to terminal:
Pods/Fabric/upload-symbols -gsp APP/Resources/GoogleService_Info.plist -p ios /Users/ME/Desktop/APP.app.dSYM
This one I used recently to upload my dsym to fabric. I was using fabric with crashlytics SDK not firebase one(which is currently in beta). Just replace your app name for 'APP' and your DSYM path instead of '/Users/ME/Desktop/APP.app.dSYM.