简体   繁体   English

如何在XCode 4.2中编辑Settings.bundle

[英]How to edit Settings.bundle in XCode 4.2

Problem : Quite simply, in my iOS app I have a Settings.bundle to help create the settings page. 问题 :很简单,在我的iOS应用程序中,我有一个Settings.bundle来帮助创建设置页面。 In XCode 3 I could simply edit this, but it doesn't seem possible in XCode 4. Settings.bundle can't be opened from XCode and going through the folders myself I can't see a file to edit. 在XCode 3中,我可以简单地编辑它,但是在XCode 4中似乎不可能.Options.bundle无法从XCode打开并自己浏览文件夹我看不到要编辑的文件。 What do I do? 我该怎么办?

Screenshot of Settings.bundle in XCode 4.2 : XCode 4.2中Settings.bundle的屏幕截图

在此输入图像描述

Update - Screenshot of structure in Finder : 更新 - Finder中结构的屏幕截图

在此输入图像描述

In XCode 4.2 select your Settings.bundle; 在XCode 4.2中选择您的Settings.bundle; Show Utilities; 显示实用程序; In the Identity & Type Utility, change file type to CoreFoundation.bundle. 在Identity&Type Utility中,将文件类型更改为CoreFoundation.bundle。

在项目导航器中右键单击设置捆绑>>在查找器中显示>>在查找器中右键单击设置捆绑>>点击“显示包内容”>>根据需要编辑plist!

I've found a way to do it, although it bypasses XCode. 虽然它绕过了XCode,但我找到了一种方法。 In Finder, right click on Settings.bundle, and choose 'Show Package Contents'. 在Finder中,右键单击Settings.bundle,然后选择“显示包内容”。 Then edit as necessary. 然后根据需要编辑。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM