我正在尝试使用测试 Swift 包xcodebuild
。命令是:
/Applications/Xcode_13.3.1.app/Contents/Developer/usr/bin/xcodebuild test -scheme BokenEngine -destination "platform=iOS Simulator,name=iPhone 11" -enableCodeCoverage YES -derivedDataPath .DerivedData
我可以在装有 macOS 12.4 和 Xcode 13.4.1 的计算机上执行它,但是当我尝试在 GitHub 运行器上执行相同的命令时,出现以下错误:
2022-06-24 08:05:12.553 xcodebuild[1861:25223] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-20103/IDEFoundation/Execution/RunContextManager/IDERunContextManager.m:823
Details: Error deleting scheme: Cannot modify data because the process disallows saving.
Object: <IDERunContextManager: 0x600000fd97a0>
Method: -deleteRunContexts:completionQueue:completionBlock:
Thread: <_NSMainThread: 0x6000028ec400>{number = 1, name = main}
Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
2022-06-24 08:05:12.554 xcodebuild[1861:25223] could not delete old scheme: Error Domain=DVTCustomDataStoringErrors Code=0 "Cannot modify data because the process disallows saving." UserInfo={NSLocalizedDescription=Cannot modify data because the process disallows saving.}
Lint 错误:https://github.com/boken-engine/boken-engine/runs/7037978166?check_suite_focus=true#step:4:56 https://github.com/boken-engine/boken-engine/runs/7037978166?check_suite_focus=true#step:4:56更多信息:https://github.com/boken-engine/boken-engine/issues/131 https://github.com/boken-engine/boken-engine/issues/131
我在 GitLab CI 上也遇到了同样的问题,但当我将构建机器更新到 Xcode 14 时,它才开始出现;我在早期版本的 Xcode 上从未见过这个问题。
就我而言,解决方案似乎是提交.xcscheme
该 Swift 包的文件到远程存储库。为了生成方案文件,我必须在 Xcode 中打开“管理方案”窗口,然后单击“立即自动创建方案”按钮。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)