|
更新 macOS 到 Sonoma 14.5 後,Xcode 連帶更新成 15.4,在建置原本沒問題的專案,突然出現一堆關於 Sandbox 的錯誤訊息。 |
---|
Sandbox Error
錯誤訊息顯示如下:
error: Sandbox: cp(11300) deny(1) file-read-data /Users/Hippo/Work/Projects/ProjectA/DerivedData/ProjectA/Build/Products/Release/ProjectA.framework (in target 'ProjectA' from project 'ProjectA') error: 2 duplicate reports for Sandbox: cp(11300) deny(1) file-read-data /Users/Hippo/Work/Projects/ProjectA/DerivedData/ProjectA/Build/Products/Release/ProjectA.framework (in target 'ProjectA' from project 'ProjectA') error: Sandbox: bash(11296) deny(1) file-read-data /Users/Hippo/Work/Projects/ProjectA/Interface (in target 'ProjectA' from project 'ProjectA')
修正方式
將選項「User Script Sandboxing」(ENABLE_USER_SCRIPT_SANDBOXING)設定成「No」,方式如下:
- 點選「Target」 開啟選單
- 點選分頁「Build Setting」
- 在右上角收搜尋搜尋「Sandbox」或「ENABLE_USER_SCRIPT_SANDBOXING」
- 找到選項「User Script Sandboxing」,將設定改成「No」即可解決
可參考下圖進行設定:
No comments:
Post a Comment