美文网首页
Xcode 15 - Sandbox: rsync.samba

Xcode 15 - Sandbox: rsync.samba

作者: ienos | 来源:发表于2024-03-12 19:53 被阅读0次

Xcode 15 Build 项目报错:
error while build iOS app in Xcode : Sandbox: rsync.samba (13105) deny(1) file-write-create, Flutter failed to write to a file

Xcode 14 中 Realse Note 说明了新增 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 会阻止项目根目录和 Devried Data 文件夹,除非通过设置 Input Files 和 Output Files 指定要访问哪些资源

Copy Pods Resources

解决方法

设置 Build Settings 中的 ENABLE_USER_SCRIPT_SANDBOXING 为 No

ENABLE_USER_SCRIPT_SANDBOXING

相关文章

网友评论

      本文标题:Xcode 15 - Sandbox: rsync.samba

      本文链接:https://www.haomeiwen.com/subject/xmgvzdtx.html