简体   繁体   English

Xcode 6 Continuous Integration Bot-Crashlytics的构建/上传脚本失败

[英]Xcode 6 Continuous Integration Bot - Crashlytics failing on build / upload script

Trying to incorporate Continuous Integration into my Xcode builds. 试图将持续集成纳入我的Xcode构建中。 I have setup OS X Server on my MacBook and everything seems to work fine except for the actual submit/upload script for Crashlytics. 我在MacBook上安装了OS X Server,除了Crashlytics的实际提交/上传脚本外,其他一切似乎都可以正常工作。

I am getting this error in the 'Trigger' log: 我在“触发器”日志中收到此错误:

/var/folders/1d/5y5tn0hd1qj01wbxgd3sxrs4000086/T/EFFB7FF5-CFF5-41CF-8AEB-D8813069D831-16127-000004A29A1D79A7: line 2: /Crashlytics.framework/submit: No such file or directory

Couple things to note: 需要注意的几件事:

  • I am able to manually archive/distribute my builds through Crashlytics without any problems. 我能够通过Crashlytics手动存档/分发我的构建,而不会出现任何问题。
  • Crashlytics is installed via PODS and my Run Script looks like this (with my real keys obviously): Crashlytics通过PODS安装,我的运行脚本如下所示(显然带有我的真实钥匙):

    ${PODS_ROOT}/Crashlytics.framework/submit MYAPIKEY MYCLIENTKEY -emails myEmail@myEmail.com -notesPath ~/Notes/ReleaseNotes.txt -groupAliases myGroupAlias -notifications YES $ {PODS_ROOT} /Crashlytics.framework/submit MYAPIKEY MYCLIENTKEY-通过电子邮件发送myEmail@myEmail.com -notesPath〜/ Notes / ReleaseNotes.txt -groupAliases myGroupAlias -notifications是

${PODS_ROOT} is not available to the post trigger action. ${PODS_ROOT}对发布触发操作不可用。

You should use 你应该用

${XCS_SOURCE_DIR}/*RepoName*/Pods/Crashlytics/Crashlytics.framework/submit etc ${XCS_SOURCE_DIR}/*RepoName*/Pods/Crashlytics/Crashlytics.framework/submit

Where *RepoName* is the name of your repo. 其中*RepoName*是您的存储库的名称。 Sadly, I haven't been able to find a env variable for it or something. 可悲的是,我无法为其找到一个env变量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM