xcode – Travis构建失败,错误65
发布时间:2020-12-14 19:17:54 所属栏目:百科 来源:网络整理
导读:我在 GitHub上安装了Travis CI.我用它来检查我对iOS应用程序的提交.问题是,我经常随机得到一个错误65.我还没有找到解决方案. 当我在失败后重新启动工作2-3次时,它会在90%的时间内完成. 我之前也遇到了Travis( 4MB)日志过于冗长的问题,但我添加了xcpretty来
我在
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中也有一些建议的代码片段.祝好运!
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |