设置:无法在容器上执行设置

Dur*_*n.H 3 shell info.plist ios cfbundledisplayname

我正在尝试使用PlistBuddy更新Info.plist 中的CFBundleNameCFBundleDisplayName

 /usr/libexec/PlistBuddy -c "Set : CFBundleName test" info.plist
 /usr/libexec/PlistBuddy -c "Set : CFBundleDisplayName test" info.plist
Run Code Online (Sandbox Code Playgroud)

当文件在 Xcode 项目之外时它可以完美运行但是当文件在项目内部时它会抛出“设置:无法在容器上执行设置

为什么会发生这种情况以及如何在不将文件移到项目之外的情况下解决此问题。