Empty Settings Bundle in Xcode 4.2

前端 未结 4 1076
一向
一向 2020-12-09 14:49

I\'m trying to create a settings bundle for my iPhone application.

However, if I create one, it becomes empty, no root p-list, no disclosure, nothing.

I\'ve

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-09 15:46

    For those that can't change the filetype, because it doesn't appear, follow these steps:

    1. Go to your project directory in finder.
    2. Create a folder called "Settings."
    3. Open Text Edit (or any other text editor for that matter)
    4. Type in:

      
      
      
      
          
      
          
      
      

      4a. Change "MyApp" to your app-name

    5. Save as "Root" in the settings folder
    6. Rename the file to "Root.plist"
    7. Rename the "Settings." Folder to "Settings.bundle"
    8. Add the "Settings.bundle" file to Xcode and you should be good to go :)

提交回复
热议问题