我能够通过临时权利解决它。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.temporary-exception.files.absolute-path.read-write</key>
<string>/Volumes/</string>
<key>com.apple.security.temporary-exception.files.home-relative-path.read-write</key>
<string>/</string>
</dict>
</plist>
就像没有启用沙箱一样,自动迁移就可以工作了。
但是,它本质上是禁用了大部分沙盒,所以我不确定苹果在应用商店批准时会如何反应。
在 developer.apple.com 上,当您发现自己不得不使用临时权利时,他们建议您提交错误。