XCode15報(bào)錯(cuò)處理 Sandbox: rsync.samba does not contain 'libarclite'

SDK does not contain ‘libarclite’ at the path…

解決方法:去pod里面搜索iOS Deployment Target,全部替換成最低支持iOS 12.0

dyld: Library not loaded: : @rpath/AFNetworking.framework/AFNetworking

解決方法:執(zhí)行 pod install


Sandbox: rsync.samba (13105) deny(1) file-write-create

Xcode 15 Build 項(xiàng)目報(bào)錯(cuò):
error while build iOS app in Xcode : Sandbox: rsync.samba (13105) deny(1) file-write-create, Flutter failed to write to a file

ENABLE_USER_SCRIPT_SANDBOXING是Xcode 15中引入的新選項(xiàng),用于控制用戶腳本在Sandbox環(huán)境下的運(yùn)行。當(dāng)該選項(xiàng)開(kāi)啟時(shí),用戶腳本將被運(yùn)行在一個(gè)限制性的環(huán)境中,無(wú)法訪問(wèn)系統(tǒng)敏感信息或文件。這可以顯著增加X(jué)code的安全性。

另:在Xcode的Project和Targets中,找到“Build Settings”內(nèi)的“ENABLE_USER_SCRIPT_SANDBOXING”選項(xiàng),將其設(shè)置為“YES”,即可開(kāi)啟此選項(xiàng)。


Xcode 14 中 Realse Note 說(shuō)明了新增 ENABLE_USER_SCRIPT_SANDBOXING

You can now enable sandboxing for shell script build phases using the ENABLE_USER_SCRIPT_SANDBOXING build setting. Sandboxing blocks access to files inside the source root of the project as well as the Derived Data directory unless you list those files as inputs or outputs. When enabled, the build fails with a sandbox violation if a script phase attempts to read from or write to an undeclared dependency, preventing incorrect builds. (90506067)

Sandboxing 會(huì)阻止項(xiàng)目根目錄和 Devried Data 文件夾,除非通過(guò)設(shè)置 Input Files 和 Output Files 指定要訪問(wèn)哪些資源

image.png

解決方法

設(shè)置 Build Settings 中的 ENABLE_USER_SCRIPT_SANDBOXING 為 No

image.png

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容