swift iOS -新Firebase Crashlytics(4.0.0-beta.5)- dSYM上传失败

huwehgph  于 2023-09-30  发布在  Swift
关注(0)|答案(2)|浏览(155)

错误:无法在/Users/apple/Downloads/appDsyms/f744 f519-c397- 3c 57-b7 e7 -1adc45ac4936.dSYM完成dSYM的提交:错误域=com.google.firebase.crashlytics.FIRCLSCompoundOperation.error Code=4294967293“(null)”UserInfo={com.google.firebase.crashlytics.FIRCLSCompoundOperation.error.user-info-key.underlying-errors=(

vojdkbi0

vojdkbi01#

尝试复制并粘贴这些说明中编写的确切脚本,即。${PODS_ROOT}/FirebaseCrashlytics/run /path/to/pods/directory/FirebaseCrashlytics/upload-symbols。

hzbexzde

hzbexzde2#

在我的例子(Flutter)中,FIREBASE_APP_ID是错误的。
之前(运行脚本):

# Source: https://firebase.google.com/docs/crashlytics/get-deobfuscated-reports?platform=flutter#run-script-exists

FIREBASE_APP_ID="1:1111111111:ios:1111111111111111111111"
if [ "${ENV}" == "dev" ]; then 
FIREBASE_APP_ID="1:2222222222:ios:2222222222222222222222"
elif [ "${ENV}" == "stg" ]; then
FIREBASE_APP_ID="1:3333333333:ios:3333333333333333333333"
fi

$PODS_ROOT/FirebaseCrashlytics/upload-symbols --build-phase --validate -ai FIREBASE_APP_ID -- $DWARF_DSYM_FOLDER_PATH/Runner.app.dSYM

$PODS_ROOT/FirebaseCrashlytics/upload-symbols --build-phase -ai FIREBASE_APP_ID -- $DWARF_DSYM_FOLDER_PATH/Runner.app.dSYM

之后(运行脚本):

# Source: https://firebase.google.com/docs/crashlytics/get-deobfuscated-reports?platform=flutter#run-script-exists

FIREBASE_APP_ID="1:1111111111:ios:1111111111111111111111"
if [ "${ENV}" == "dev" ]; then 
FIREBASE_APP_ID="1:2222222222:ios:2222222222222222222222"
elif [ "${ENV}" == "stg" ]; then
FIREBASE_APP_ID="1:3333333333:ios:3333333333333333333333"
fi

# ↓ FIREBASE_APP_ID -> $FIREBASE_APP_ID
$PODS_ROOT/FirebaseCrashlytics/upload-symbols --build-phase --validate -ai $FIREBASE_APP_ID -- $DWARF_DSYM_FOLDER_PATH/Runner.app.dSYM

# ↓ FIREBASE_APP_ID -> $FIREBASE_APP_ID
$PODS_ROOT/FirebaseCrashlytics/upload-symbols --build-phase -ai $FIREBASE_APP_ID -- $DWARF_DSYM_FOLDER_PATH/Runner.app.dSYM

相关问题