XcodeBuild错误:`错误删除方案:无法修改数据,因为该过程会取消保存。
我正在尝试使用XcodeBuild
测试Swift软件包。命令是:
/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 Runner上执行相同的命令时,我会遇到此错误:
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-goke.com/boke-boke-com/boke-gent-gence.com/boke-gent-engine/boken/boken-engine/runs/runs/runs /7037978166?check_suite_focus = true#step:4:56 更多信息: https://github.com/boken-engine/boken-engine/boken-engine/boken-engine/问题/131
I'm trying to test a Swift package using xcodebuild
. The command is:
/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
I can execute it on my machine with macOS 12.4 and Xcode 13.4.1 but when I try to execute the same command on a GitHub runner I get this error:
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 to the error: https://github.com/boken-engine/boken-engine/runs/7037978166?check_suite_focus=true#step:4:56
More info: https://github.com/boken-engine/boken-engine/issues/131
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在Gitlab CI上遇到了同样的问题,但是只有在将构建机更新为Xcode 14时,它才开始发生。我从未在Xcode的早期版本上看到过这个问题。
对于我的情况,似乎解决方案是将Swift软件包的
.xcscheme
文件提交到远程存储库中。为了生成方案文件,我必须在Xcode中打开“管理方案”窗口,然后单击“立即自动辩护方案”按钮。I had this same issue on GitLab CI, but it only started occurring for me when I updated the build machines to Xcode 14; I had never seen the issue on earlier versions of Xcode.
For my case, it seems the solution was to commit the
.xcscheme
file for that Swift package to the remote repository. In order to generate the scheme file, I had to open the "Manage Schemes" window in Xcode and click the "Autocreate Schemes Now" button.