iOS and FirebaseCrashlytics

前端 未结 9 1807
花落未央
花落未央 2020-12-02 14:40

I am trying to follow the instructions on Firebase Docs to upload missing required dSYMs. However I am stuck on running the uploader script.

In my build phases I have

9条回答
  •  孤城傲影
    2020-12-02 14:53

    2020 FirebaseCrashlytics solution

    You have two solutions :

    1) From the command line

    Go to your project folder and run :

    ./Pods/FirebaseCrashlytics/upload-symbols -gsp GoogleService-Info.plist -p ios

    You can get your dsym in Xcode organizer > right click on the archive > show in Finder -> Show content -> go to dsymm folder and compress it

    2) From Xcode Build Phases

    As described here (Firebase doc), you can add a Run Script phase in Xcode with this content :

    "${PODS_ROOT}/FirebaseCrashlytics/run"

    You also have to add these two input files under the run script :

    ${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${TARGET_NAME}

    and

    $(SRCROOT)/$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)

提交回复
热议问题