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 指定要访问哪些资源
解决方法
设置 Build Settings 中的 ENABLE_USER_SCRIPT_SANDBOXING
为 No