Xcode 15 - Sandbox: rsync.samba (13105) deny(1) file-write-create, Flutter failed to write to a file

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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容