上传符号文件时出现Firebase iOS多重错误 [英] Firebase iOS multiple errors when uploading symbol files
问题描述
正确执行所有步骤后,这是我在Xcode上遇到的错误,它不允许我的项目运行:
我也尝试使用批量上传手动上传它,但它给了我一个错误:
./ batch-upload:第121行:FIREBASE_API_KEY:环境变量空或未设置
显式添加到环境或设置GoogleService-Info.plist -p)
和Info.plist(-i)标志从文件中提取值。
尝试./batch-upload -h获取详细信息。
我错过了什么?
解答:firebase-support@google.com
您可以查看以下内容,看看是否有效:
重置您的OAuth凭证,运行以下命令:
rm $ HOME / Library /Preferences/com.google.SymbolUpload*
创建新的服务帐户并确保其具有编辑权限
将您的脚本修改为以下格式:
#将其替换为GoogleService-Info.plist文件中的GOOGLE_APP_ID
GOOGLE_APP_ID = 1:my:app:id
将/Path/To/ServiceAccount.json替换为刚刚下载的密钥的路径
$ {PODS_ROOT}/ FirebaseCrash / upload-sym/Path/To/ServiceAccount.json
请记住按照 t他的链接
请确保您的应用程序ID和json文件路径是正确的。
我希望这有助于。
I'm trying to setup Firebase Crash Reporting on a Swift project. I'm using Xcode 7.3. Firebase Crash Reporting version is 1.0.7.
After following all steps properly, this is the error I'm getting on Xcode, which isn't allowing my project to run:
I've also tried to manually upload it using batch-upload, but it gives me an error:
./batch-upload: line 121: FIREBASE_API_KEY: environment variable empty or unset
Explicitly add to environment or set GoogleService-Info.plist (-p)
and Info.plist (-i) flags to extract values from the files.
Try "./batch-upload -h" for details.
Am I missing anything?
Answer from: firebase-support@google.com
Can you go over the following items and see it will work:
reset your OAuth credentials, run below command:
rm $HOME/Library/Preferences/com.google.SymbolUpload*
create new service account and make sure it has editor permission Revise your script into below format:
# Replace this with the GOOGLE_APP_ID from your GoogleService-Info.plist file
GOOGLE_APP_ID=1:my:app:id
# Replace the /Path/To/ServiceAccount.json with the path to the key you just downloaded
"${PODS_ROOT}"/FirebaseCrash/upload-sym "/Path/To/ServiceAccount.json"
Remember to follow the instructions on this link
Please make sure your app id and json file path are correct. I hope this helps.
这篇关于上传符号文件时出现Firebase iOS多重错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!