0

Q1: アップロード スクリプトを追加すると、プロジェクトのビルドに失敗しました。

JSON_FILE=${PROJECT_DIR}/Blued-i-a3bc95921663.json
GOOGLE_APP_ID=1:XXXXXXXXXX:ios:XXXXXXXXXXX
defaults write com.google.SymbolUpload version -integer 1
JSON=$(cat "${JSON_FILE}")
/usr/bin/plutil -replace "app_${GOOGLE_APP_ID//:/_}" -json "${JSON}"      "$HOME/Library/Preferences/com.google.SymbolUpload.plist"
"${PODS_ROOT}"/FirebaseCrash/upload-sym

失敗したログ:

...
warning: dump_syms: /Users/xiejing/Library/Developer/Xcode/DerivedData/Blued2015-c/Users/xiejing/Library/Preferences/com.google.SymbolUploadToken.plist: Could not modify plist, error: Failed to parse value  with type -json

kgekafhlpbizzczluukmcxwihwk/Build/Products/Debug-iphoneos/Blued2015.app.dSYM/Contents/Resources/DWARF/Blued2015: in compilation unit '/Users/xiejing/workspace/Blued2015/Blued-International-iOS/Blued/Blued/Blued2015/ThirdPart/libs/zxing/source/oned/Code128Reader.cpp' (offset 0x58c5ec):

....

warning: dump_syms: /Users/xiejing/Library/Developer/Xcode/DerivedData/Blued2015-ckgekafhlpbizzczluukmcxwihwk/Build/Products/Debug-iphoneos/Blued2015.app.dSYM/Contents/Resources/DWARF/Blued2015: in compilation unit '/Users/xiejing/workspace/Blued2015/Blued-International-iOS/Blued/Blued/Blued2015/ThirdPart/libs/zxing/source/common/BitArray.cpp' (offset 0x99deed):
warning: dump_syms:        /Users/xiejing/Library/Developer/Xcode/DerivedData/Blued2015-ckgekafhlpbizzczluukmcxwihwk/Build/Products/Debug-iphoneos/Blued2015.app.dSYM/Contents/Resources/DWARF/Blued2015: in compilation unit 'Blued2015/ThirdPart/libs/zxing/source/ResultPoint.cpp' (offset 0x9a6c2e):
Command /bin/sh failed with exit code 1

Q2: 手動でアップロードしても失敗します。

$/Pods/FirebaseCrash/batch-upload BF574806-B49C-3B5B-A17F-558534AF82FC
>/Users/xiejing/Library/Preferences/com.google.SymbolUploadToken.plist: Could not modify plist, error: Failed to parse value  with type -json
4

1 に答える 1