且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

为什么我不能将子窗格plist文件添加到我的项目的Settings.bundle中?

更新时间:2021-11-16 00:28:50

Argh,Apple倾向于改变事物而不让任何人知道。如果你问我,整个设置捆绑的东西就没有很好地集成到XCode中。
如果您尝试本地化您的应用程序,您会发现必须手动将本地化文件夹添加到settings.bundle。

Argh, Apple tends to change things without letting anyone know. The whole settings bundle thing is just not well integrated into XCode if you ask me. If you ever try to localize your application, you will find that you have to manually add the localization folders to the settings.bundle.

看起来我们有现在添加子菜单做同样的事情,因为只是添加plist文件不会将它放入settings.bundle。

Looks like we have to do the same thing to add child menus now, as just adding the plist file does not put it into the settings.bundle.

以下是我刚才的一系列步骤试过了。

Here is the set of steps I just tried that worked.


  1. 打开查找器,你可以右键单击或用两根手指点击Settings.bundle并选择在Finder中显示。 / li>
  2. 右键单击finder窗口中的Settings.bundle,选择显示包内容。

  3. 将新的plist文件复制到此旁边的settings.bundle Root.plist

  4. 从主项目中删除新的plist。