Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/109.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iOS Firebase崩溃在设置时报告崩溃_Ios_Xcode_Firebase_Firebase Crash Reporting - Fatal编程技术网

iOS Firebase崩溃在设置时报告崩溃

iOS Firebase崩溃在设置时报告崩溃,ios,xcode,firebase,firebase-crash-reporting,Ios,Xcode,Firebase,Firebase Crash Reporting,我已经阅读了好几篇SO文章,并遵循了Firebase教程,但我似乎没有任何运气设置崩溃 我加上吊舱,走到这些台阶上 # 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

我已经阅读了好几篇SO文章,并遵循了Firebase教程,但我似乎没有任何运气设置崩溃

我加上吊舱,走到这些台阶上

# 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"
第二部分让我感到困惑,因为上面写着FirebaseCrash/upload sym的部分…upload sym不是一个文件夹而是一个文件…因此,我如何继续往下看层次结构

所以我删除了那个部分,我把下载的文件改为“未知”,我把它重命名为servicecomport.json,并把它放在firebasecash文件夹中…最后一行看起来像

"${PODS_ROOT}"/FirebaseCrash/"ServiceAccount.json"
当我清理和构建时,我得到1个错误

这个错误很长,但从我能从中得出的结论是

....line 6: ...... /Pods/FirebaseCrash/ServiceAccount.json: Permission
denied
我在一些SO帖子中读到,我需要转到一个名为权限的页面,并在那里做些事情


如果有人能清楚地说我到目前为止所做的是否正确,以及我需要做的是否是布局,因为许多帖子相互冲突

请记住,这个集成步骤告诉xcode运行
上传sym
脚本来上传符号。您必须运行该脚本-无法删除它。它接收到一个参数,该参数是服务帐户的json文件,该文件授予上载权限。

请记住,此集成步骤告诉xcode运行
upload sym
脚本以上载符号。您必须运行该脚本-无法删除它。它接收一个参数,该参数是授予上传权限的服务帐户的json文件。

FirstI installed
pod'Firebase/Crash'
, 然后,我生成了一个密钥,让它像您ServiceAccount.json一样命名 在应用程序中创建了一个文件夹,比如说MyApp,在MyApp中MyApp.xcodeproj和MyApp.xcworkspace所在的MyApp中,我创建了CrashReportingKey文件夹,并在其中添加了ServiceAccount.json。 创建了一个运行脚本,并进行了设置。 在脚本中添加了以下内容:

GOOGLE_APP_ID=1:xxxxxx:ios:xxxxxxx

"${PODS_ROOT}"/FirebaseCrash/upload-sym "${SRCROOT}"/CrashReportingKey/ServiceAccount.json

FirstI安装了
pod“Firebase/Crash”
, 然后,我生成了一个密钥,让它像您ServiceAccount.json一样命名 在应用程序中创建了一个文件夹,比如说MyApp,在MyApp中MyApp.xcodeproj和MyApp.xcworkspace所在的MyApp中,我创建了CrashReportingKey文件夹,并在其中添加了ServiceAccount.json。 创建了一个运行脚本,并进行了设置。 在脚本中添加了以下内容:

GOOGLE_APP_ID=1:xxxxxx:ios:xxxxxxx

"${PODS_ROOT}"/FirebaseCrash/upload-sym "${SRCROOT}"/CrashReportingKey/ServiceAccount.json

那么在-sym之后…我要重新开始路径吗?比如说AppName/some folder/the file?最安全的做法是将服务帐户文件的完整路径作为upload sym脚本的参数。那么在-sym之后…我是否重新启动路径?比如说AppName/some folder/the file?最安全的做法是将服务帐户文件的完整路径作为upload sym脚本的参数。我的路径与您的完全相同(除了xxxxx部分,它是在那里填写的)我现在得到一个新的错误…现在我得到命令/bin/sh失败,退出代码为2我还清理了项目,在清理时按住option并删除了派生数据…我仍然得到这个退出代码2…我注意到文档上说rm$HOME/Library/Preferences/com.google.SymbolUpload*。但是…当我在终端中运行它时,它会说“找不到匹配项”。我尝试在${SRCROOT}之前和之后添加“现在它构建时没有错误,现在我将尝试继续设置,希望就是这样!我的设置与您的设置完全相同(除了xxxxx部分,其中填充了它)我现在得到一个新的错误…现在我得到命令/bin/sh失败,退出代码为2我还清理了项目,在清理时按下了选项,删除了派生数据…我仍然得到这个退出代码2…我注意到文档上写着rm$HOME/Library/Preferences/com.google.SymbolUpload*。但是…当我在终端中运行时,它说“在${SRCROOT}之前和之后都没有找到匹配项“嗯,我尝试添加了”,现在它构建没有错误,现在我将尝试继续设置,希望就是这样!