新的 Crashlytics 方法
The new Crashlytics Method
我昨天刚通过 Cocoapods 下载了 Crashlytics,
根据互联网上的一些视频,我开始将它集成到我的项目中。
我喜欢没有 fabric pod 的集成方式(新方式),所以我成功了。
除了上传 DSYM 文件外,一切正常。我尝试了以下代码:
"${PODS_ROOT}/FirebaseCrashlytics/run"
"${PODS_ROOT}/FirebaseCrashlytics/upload-symbols" -gsp
"${PROJECT_DIR}/GoogleService-Info.plist" -p ios
"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}"
但这在编译时给我一个错误:
Running upload-symbols in Build Phase mode
Validating build environment for Crashlytics...
Validation succeeded. Exiting because upload-symbols was run in validation mode
[31merror: Could not get path for GoogleService-Info.plist[0m
/Users/ahmedal-mashhoor/Library/Developer/Xcode/DerivedData/MAGICWORLD-bksejwnexokchwftspvscdgsjjek/Build/Intermediates.noindex/MAGICWORLD.build/Debug-iphoneos/MAGICWORLD.build/Script-78DFB3242419196A006596CC.sh: line 4: /Users/ahmedal-mashhoor/Desktop/MagicWordiOS/GoogleService-Info.plist: Permission denied
/Users/ahmedal-mashhoor/Library/Developer/Xcode/DerivedData/MAGICWORLD-bksejwnexokchwftspvscdgsjjek/Build/Intermediates.noindex/MAGICWORLD.build/Debug-iphoneos/MAGICWORLD.build/Script-78DFB3242419196A006596CC.sh: line 5: /Users/ahmedal-mashhoor/Library/Developer/Xcode/DerivedData/MAGICWORLD-bksejwnexokchwftspvscdgsjjek/Build/Products/Debug-iphoneos/MAGICWORLD.app.dSYM: is a directory
Command PhaseScriptExecution failed with a nonzero exit code
我哪里做错了,请帮忙。
我找到了正确的代码:
"${PODS_ROOT}/FirebaseCrashlytics/run"
"${PODS_ROOT}/FirebaseCrashlytics/upload-symbols" -gsp "${PROJECT_DIR}/GoogleService-Info.plist" -p iOS "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}"
我昨天刚通过 Cocoapods 下载了 Crashlytics, 根据互联网上的一些视频,我开始将它集成到我的项目中。 我喜欢没有 fabric pod 的集成方式(新方式),所以我成功了。
除了上传 DSYM 文件外,一切正常。我尝试了以下代码:
"${PODS_ROOT}/FirebaseCrashlytics/run"
"${PODS_ROOT}/FirebaseCrashlytics/upload-symbols" -gsp
"${PROJECT_DIR}/GoogleService-Info.plist" -p ios
"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}"
但这在编译时给我一个错误:
Running upload-symbols in Build Phase mode
Validating build environment for Crashlytics...
Validation succeeded. Exiting because upload-symbols was run in validation mode
[31merror: Could not get path for GoogleService-Info.plist[0m
/Users/ahmedal-mashhoor/Library/Developer/Xcode/DerivedData/MAGICWORLD-bksejwnexokchwftspvscdgsjjek/Build/Intermediates.noindex/MAGICWORLD.build/Debug-iphoneos/MAGICWORLD.build/Script-78DFB3242419196A006596CC.sh: line 4: /Users/ahmedal-mashhoor/Desktop/MagicWordiOS/GoogleService-Info.plist: Permission denied
/Users/ahmedal-mashhoor/Library/Developer/Xcode/DerivedData/MAGICWORLD-bksejwnexokchwftspvscdgsjjek/Build/Intermediates.noindex/MAGICWORLD.build/Debug-iphoneos/MAGICWORLD.build/Script-78DFB3242419196A006596CC.sh: line 5: /Users/ahmedal-mashhoor/Library/Developer/Xcode/DerivedData/MAGICWORLD-bksejwnexokchwftspvscdgsjjek/Build/Products/Debug-iphoneos/MAGICWORLD.app.dSYM: is a directory
Command PhaseScriptExecution failed with a nonzero exit code
我哪里做错了,请帮忙。
我找到了正确的代码:
"${PODS_ROOT}/FirebaseCrashlytics/run"
"${PODS_ROOT}/FirebaseCrashlytics/upload-symbols" -gsp "${PROJECT_DIR}/GoogleService-Info.plist" -p iOS "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}"