问题描述
对于我的iOS应用程序,我使用Jenkins分发我的测试版本.我使用Fabric进行崩溃报告.我在Jenkins上运行后期构建脚本,以将ipa,发行说明和DSYM上载到Fabric.这是我运行的用于上传DSYM的脚本:
For my iOS app I use Jenkins to distribute my test builds. I use Fabric for crash reporting. I run the post build scripts on Jenkins to upload ipa, release notes and DSYMs to Fabric. This is the script I run to upload DSYMs:
${WORKSPACE}/Pods/Fabric/upload-symbols -a {api-key} -p ios ${WORKSPACE}/artifacts/TestDebug-iphoneos/${PROJECT_NAME}.app.dSYM
在Jenkins的构建日志中,我看到:
In the build logs on Jenkins I see:
upload-symbols [91261:22647730]在dSYM中成功提交了具有UUID {uuid2}的架构armv7的符号:/Users/jenkins/build/workspace/{my_app}/artifacts/TestDebug-iphoneos/Myapp.app.dSYM
upload-symbols[91261:22647730] Successfully submitted symbols for architecture armv7 with UUID {uuid2} in dSYM: /Users/jenkins/build/workspace/{my_app}/artifacts/TestDebug-iphoneos/Myapp.app.dSYM
但是,我仍然看到Fabric上缺少DSYM.我查看了Fabric丢失的UUID,它们与我的构建机器上的任何内容都不匹配.它们都不匹配我上面构建日志中的uuid1或uuid2.
However, I still see missing DSYMs on Fabric. I looked at the UUIDs that Fabric is missing, and they do not match to anything on my build machine. Neither they match the uuid1 or uuid2 from my build log above.
有人遇到过同样的问题吗?
Did anyone ran into the the same issue?
任何帮助都将受到高度赞赏!
Any kind of help is highly appreciated!
推荐答案
最后使用此脚本找到了解决方案:
Finally found a solution by using this script:
找到$ {WORKSPACE}/artifacts/MyApp.xcarchive/dSYMs -name"* .dSYM" | xargs -I {} $ {WORKSPACE}/Pods/Fabric/upload-symbols -a -p ios {}
find ${WORKSPACE}/artifacts/MyApp.xcarchive/dSYMs -name "*.dSYM" | xargs -I {} ${WORKSPACE}/Pods/Fabric/upload-symbols -a -p ios {}
这篇关于Fabric丢失了DSYM,即使日志显示它已将其上传的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!