我在
GitHub上安装了Travis CI.我用它来检查我对iOS应用程序的提交.问题是,我经常随机得到一个错误65.我还没有找到解决方案.
当我在失败后重新启动工作2-3次时,它会在90%的时间内完成.
我之前也遇到了Travis(> 4MB)日志过于冗长的问题,但我添加了xcpretty来解决这个问题.
我从日志中得到的错误:
... Generating 'XYZ.app.dSYM' ❌ error: couldn't remove '/Users/travis/Library/Developer/Xcode/DerivedData/XYZ-aaltcjvmshpmlufpmzdsgbernspl/Build/Products/Debug-iphonesimulator/XYZ.app/SomeName.storyboardc' after command failed: Directory not empty ...
然后在特拉维斯日志结束时:
Testing failed: The file “056-Jj-FAu-view-XmS-Ro-0cO.nib” couldn’t be opened because there is no such file. error: couldn't remove '/Users/travis/Library/Developer/Xcode/DerivedData/XYZ-aaltcjvmshpmlufpmzdsgbernspl/Build/Products/Debug-iphonesimulator/XYZ.app/SomeName.storyboardc' after command failed: Directory not empty error: lipo: can't move temporary file: /Users/travis/Library/Developer/Xcode/DerivedData/XYZ-aaltcjvmshpmlufpmzdsgbernspl/Build/Products/Debug-iphonesimulator/XYZ.app.dSYM/Contents/Resources/DWARF/XYZ to file: /Users/travis/Library/Developer/Xcode/DerivedData/XYZ-aaltcjvmshpmlufpmzdsgbernspl/Build/Products/Debug-iphonesimulator/XYZ.app.dSYM/Contents/Resources/DWARF/XYZ.lipo (No such file or directory) Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil emitted errors but did not return a nonzero exit code to indicate failure ** TEST FAILED ** The following build commands failed: LinkStoryboards LinkStoryboards (2 failures) The command "./scripts/build.sh" exited with 65.
我在Xcode和Travis设置中都使用Xcode 8.
解决方法
啊,好问题.有时,在代码签名步骤中失败的xcodebuild步骤可以使用travis_retry进行处理 – Travis将针对任何非零退出状态重试步骤3次,这将减少您手动重新启动它的需要.在
travis-ci/travis-ci
GitHub issue中也有一些建议的代码片段.祝好运!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。