gpt4 book ai didi

xcode - Travis 构建失败,错误 65

转载 作者:行者123 更新时间:2023-12-04 21:08:36 25 4
gpt4 key购买 nike

我在 GitHub 上有一个 Travis CI 设置。我用它来检查我对 iOS 应用程序的提交。问题是,我经常随机收到错误 65。我还没有找到解决方案。

当我在失败后重新启 Action 业 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
...

然后在 Travis 日志的末尾:
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 8在 Xcode 和 Travis 设置中。

最佳答案

啊,好问题。偶尔,xcodebuild可以使用 travis_retry 解决在协同设计步骤中失败的步骤。 - 对于任何非零退出状态,Travis 将重试该步骤 3 次,这将减少您手动重新启动它的需要。 travis-ci/travis-ci GitHub issue 中有一些建议的代码片段在这方面也是如此。祝你好运!

关于xcode - Travis 构建失败,错误 65,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39998398/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com