Why can't I add a child pane plist file into my project's Settings.bundle?

后端 未结 6 1296
眼角桃花
眼角桃花 2021-02-04 06:06

I\'m running Xcode 4.1 and I\'ve been following a tutorial about app settings. Everything has been going great up until I get ready to add a plist for a child pane that I want

相关标签:
6条回答
  • 2021-02-04 06:36

    I was not able to get the text field to show up under additional .plist page.
    My Fix:

    1. Leave only 1 Child.plist file outside Settings.bundle
    2. Navigate to Root.plist
    3. Right click and select 'Show Ray Keys/Values'
    4. Right click and select 'Add Row'. Add:
      1. Key: File
      2. Type: String
      3. Value: Root
    0 讨论(0)
  • 2021-02-04 06:36

    This problem still exists in Xcode 4.2. Creating and moving [child].plist in Finder does help thanks to John S up there.

    Some additional tips.

    Make sure to turn on "Show Raw Keys/Values" by right clicking inside the opened root.plist file for the "ChildPane Type" to appear. Also make sure to select "Property List Type" as "iPhone Settings plist". If you're having trouble with ordering items, just open the plist file in a text editor and move the xml elements around accordingly.

    0 讨论(0)
  • 2021-02-04 06:38

    Same issue, waste my almost 1 hour. 1st make sure your plist format is correct.

    My solution: Delete you bundle, and re-build & run.

    Now everything is fine...

    0 讨论(0)
  • 2021-02-04 06:44

    Additional additional tip: in Xcode 4.2 to explore/expand the contents of the bundle make sure to set its type to Application Bundle (via File Inspector Menu).

    0 讨论(0)
  • 2021-02-04 06:49

    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.

    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. Open up finder, you can right click or two finger click Settings.bundle and choose "Show in Finder".
    2. Right click Settings.bundle in the finder window, choose show package contents.
    3. Copy the new plist file into this the settings.bundle next to the Root.plist
    4. Delete the new plist from the main project.
    0 讨论(0)
  • 2021-02-04 06:50

    In Xcode 4.3.2,

    1. Right click the Project Name in the Project Navigator, and choose Show in Finder.
    2. In Finder, right click the setting.bundle and choose Show Package Contents.
    3. Copy the new .plist to setting.bundle.
    4. Back to XCode, open the setting.bundle, wilfully add one item under the Preference Items, then expand it and modify the value of Type to Child Pane.I can't upload the image, so give the link of the blog.
    0 讨论(0)
提交回复
热议问题