gpt4 book ai didi

ios - Xcode Firebase 崩溃报告权限被拒绝

转载 作者:搜寻专家 更新时间:2023-10-31 19:33:18 24 4
gpt4 key购买 nike

首先:请不要标记为重复,因为现有线程尚未为我提供解决方案。

同时尝试 setup the crash reporting API (FirebaseCrash (1.1.4),对于使用 Swift 3 的 Xcode,我得到:

/xy.sh: line 6: /xyfirebase-crashreporting-xxxxx.json: Permission denied

enter image description here

我按下了加号按钮,然后是“New run script phrase”,然后我从我的 plist 文件中复制/粘贴了 GOOGLE_APP_ID 并将 json 文件放入 pod 文件夹。

enter image description here

我找到了 this thread ,建议接受服务条款:https://console.cloud.google.com/但是点击链接,我找不到任何接受 ToS 的选项,所以我想它已经完成了吗?

enter image description here

我也给了“编辑角色”

enter image description here

我错过了什么?非常感谢您的帮助。

最佳答案

试试

  • 删除派生数据然后在终端中运行命令

  • rm $HOME/Library/Preferences/com.google.SymbolUpload*

  • 播放该应用。

  • 如果通过对话框询问,请选择您的 xy.json 文件

如果这不起作用,请尝试像下面这样更改脚本

# Replace this path with the path to the key you just downloaded
#Path/To/ServiceAccount.json
JSON_FILE="$PROJECT_DIR/my_firebase_app_crashreporting-of6c5-07b79d228f.json"

# Replace this with the GOOGLE_APP_ID from your GoogleService-Info.plist file
GOOGLE_APP_ID=1:xxxxxxxxxxx:ios:xxxxxxxxxxx

defaults write com.google.SymbolUpload version -integer 1 # creates file if it does not exist
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

关于ios - Xcode Firebase 崩溃报告权限被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40761317/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com