简体   繁体   中英

iOS/Objective-C: How to import DWARF file in Firebase Crashlytics? "${PODS_ROOT}/FirebaseCrashlytics/upload-symbols" not working anymore

I just install Firebase, but impossible to import à DWARF file. I put this line in my Script of the app, but it seems not to resolve the problem with a real device.

在此处输入图像描述 Script:

"${BUILD_DIR%Build/*}/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/run" -gsp  
"${PROJECT_DIR}/GoogleService-Info/FormBoxRenaultExtensionDays/GoogleService-Info.plist" -p ios  
"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${TARGET_NAME}"

What do you think it is?

EDIT:
I tried to upload it in the console Firebase by compliling, archivinb, and downloading it in the xcode organizer with this ticket but it is still a problem, nothing happens, even by waiting 10 hours... 图像假成功 It is saying success, but it is not resolving the problem at all...

转到窗口->组织者->存档->选择构建->右键单击并在查找器中显示,而不是右键单击并显示包内容选择DYSM文件夹并将其压缩并将其上传到firebase。

To automate the dSYMs upload I usually check the following:

  1. Make sure Xcode is generating dSYMs: https://firebase.google.com/docs/crashlytics/get-deobfuscated-reports?platform=ios#check-xcode

  2. Make sure Xcode is able to upload dSYMs automatically with the run script: https://firebase.google.com/docs/crashlytics/get-started?platform=ios#set-up-dsym-uploading . This is the document related to CocoaPods: https://firebase.google.com/docs/ios/installation-methods#product-specific-considerations

After doing this, to test this is working correctly:

  1. Increase the version/build number (just to have a reference)
  2. Do a small code change (This helps to trigger XCode into generating a new UUID and dSYMs)
  3. Cause a new test crash to see if it shows up in the dashboard. That would confirm the SDK is working fine and that the dSYMs got uploaded.

If this is still failing, instead having this in the run script "/Crashlytics/run" you can have this command:

"${BUILD_DIR%/Build/*}/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/upload-symbols" --build-phase --debug

The --build-phase argument makes the script to upload the dSYMs as part of the build process instead of doing it asynchronously, the caveat is that the build process could take longer.

The --debug argument makes the script print verbose output.

When building the app, you can see these logs in the build output. It can tell you if something went wrong. It also shows the appId it is sending the dSYMs, so it can help you see if it is uploading them to the right app.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM