XcodeBuild错误:`错误删除方案:无法修改数据,因为该过程会取消保存。

发布于 2025-02-10 07:36:14 字数 1859 浏览 1 评论 0原文

我正在尝试使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清泪尽 2025-02-17 07:36:14

我在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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文