Fabric Crashlytics How to upload dSYM file in Jenkins with Xcode integration plugin

微笑、不失礼 提交于 2019-12-13 05:06:08

问题


ok, I use Jenkins + Xcode integration plugin to auto export iPA for tester to test. I want Jenkins to auto upload dSYM file to fabric server on every build. How to do it?

Jenkins is running on my mac mini 2012 with mac os 10.11.1. I have install fabric.app on it, and the app is always running, and the project have a shell

./Fabric.framework/run xxxkey  xxx

But it sees not work?


回答1:


Ok I find the problem is that the upload dSYM process is killed by jenkins. Jenkins kills all process spawn by the job. I am solving this problem.

To solve it, read the document: https://wiki.jenkins-ci.org/display/JENKINS/ProcessTreeKiller

just add a variable

export BUILD_ID=dontKillMe

And the upload dSYM task will continue to upload.




回答2:


As mentioned in the answer above, you simple append the BUILD_ID to the beginning of the call. I was building a macOS/iOS project, so used the following within the "Build Phases" section:

BUILD_ID=dontKillMe ./Fabric.framework/run xxxkey  xxx

This worked a treat for me.



来源:https://stackoverflow.com/questions/33622614/fabric-crashlytics-how-to-upload-dsym-file-in-jenkins-with-xcode-integration-plu

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