We have added dependencies via SPM. Can we automate uploading dsyms with this configuration or we have to add the Firebase package using Cocoapods or Carthage.
This is my script for uploading symbols when firebase sdk is added via SPM and it doesn't work
googleServiceFileName="GoogleService-Info"
echo "Symbols Directory"
echo "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}"
"${BUILD_DIR%/Build/*}/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/run" -gsp
"${PROJECT_DIR}/project/GoogleServicesInfo/${googleServiceFileName}.plist" -p ios "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}"
Following this documentation page by Google, you should do the following:
debug information format, and set all build types toDWARF with dSYM File.It should look something like this:
After every run it should upload the correct symbols to Crashlytics.