Travis构建失败,错误65

Fen*_*son 5 xcode travis-ci

我在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
...
Run Code Online (Sandbox Code Playgroud)

然后在特拉维斯日志结束时:

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.
Run Code Online (Sandbox Code Playgroud)

Xcode 8在Xcode和Travis设置中都使用它们.

小智 1

啊,好问题。有时,xcodebuild可以使用以下方法解决协同签名步骤中失败的步骤travis_retry- Travis 将针对任何非零退出状态重试该步骤 3 次,这应该会减少您手动重新启动它的需要。travis-ci/travis-ciGitHub 问题中也有一些关于此的建议代码片段。祝你好运!