IOS upload symbol files for crash reporting fail

。_饼干妹妹 提交于 2019-12-06 09:53:21

问题


/Users/appledev018/LarsonApp/Pods/FirebaseCrash/upload-sym-util.bash:335: error: curl exited with non-zero status 35.

hello

Command /bin/sh emitted errors but did not return a nonzero exit code to indicate failure

I follow the guide to set up firebase crash reporting and when I run my project get above error

and following is my script

echo "### hello world"
GOOGLE_APP_ID=1:688585241582:ios:0203552cad37c112
echo "### hello google"
"${PODS_ROOT}"/FirebaseCrash/upload-sym "${PROJECT_DIR}/ServiceAccount.json"
echo "### hello"


回答1:


Enable "Run Script only when install" in build phases. Then it'll run as expected. This will avoid to upload the script each time when run the system.

Please refer attached screen shot.




回答2:


If you have bitcode enabled, you can use this script to automate the process and not worry about the rest.

Follow these steps carefully

  1. Add your unzipped dsym folder to your project's main directory
  2. Add this script to the dsym folder
  3. Open terminal
  4. cd into the dsym folder in the project's main directory
  5. Run this python script i.e 'python batch_upload_files.py'

https://github.com/hanijazzar/Contributions/blob/master/batch_upload_files.py




回答3:


Maybe I am a bit late, but here is a solution.

The problem is that curl can not verify the SSL certificate on the remote server and therefore blocks the transfer because it seems to be insecure.

You have 2 options:

1) Add -k as an option to the curl call. (This means to edit the script in the pod.)

2) Allow insecure SSL connections generally. (This disables certificate chain checking but leaves other validation enabled.)
$ echo insecure >> ~/.curlrc



来源:https://stackoverflow.com/questions/41058475/ios-upload-symbol-files-for-crash-reporting-fail

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!