4

I've added the stock 'Settings.Bundle' into my App Bundle:

enter image description here

However, I get a different set of settings (shown in simulator): enter image description here

* Revision * The Settings.bundle is a member of the target: enter image description here

Here's where the settings.bundle is located: enter image description here

Note: I can see the new Settings after I do a 'reset' of the Simulator. However I don't see any change on the actual device, even after removing the app and doing a cold restart.

How do I get my DEVICE version to recognize the updated/new Settings bundle?

Frederick C. Lee
  • 9,019
  • 17
  • 64
  • 105
  • 1
    Is your bundle selected for inclusion with your target? – Dan Loughney Sep 09 '15 at 20:28
  • I have the Settings.bundle within the 'Copy Bundle Resources' of the build, generated automatically; if that's what you mean. – Frederick C. Lee Sep 09 '15 at 20:57
  • I've updated the Xcode IDE to version 7 GM. I made sure Settings @ root and is member of target. I've rested the simulator. I *works* upon rebuild on Simulator. However, nothing changed with DEVICE: removed app and re-install & run... no change in Settings (see above rewrite). Why? – Frederick C. Lee Sep 09 '15 at 22:37
  • There's also a bug causing the settings to disappear all the time. Kill the settings app to fix this. https://forums.developer.apple.com/thread/9853 – Tieme Nov 11 '15 at 15:39

4 Answers4

5

Two requirements are:

  • Settings.bundle must be included in your target

enter image description here

  • Settings.bundle should be in the root of your app folder/bundle
Dan Loughney
  • 4,647
  • 3
  • 25
  • 40
  • 1
    It worked! But one thing I did not understand is that the app usually gets added to the settings app when it is installed then why it is necessary to add this bundle? – Suhail Nov 04 '20 at 11:31
3

Issue fixed,after relaunching the settings app.

Kannan Prasad
  • 1,796
  • 22
  • 27
1

Both of Dan's suggestions were needed to be on the right track. However as with having to reset the simulator to get the Settings to function correctly, I had to:

1) Remove the device app.
2) Do a cold restart of the device,
3) Re-install the revised-Setting application.

Once I did all that, I can see the revised Setting changes.

Frederick C. Lee
  • 9,019
  • 17
  • 64
  • 105
0

I was using CloudKit. The app appeared in the Settings app only after the app accessed CloudKit through:

[[CKContainer defaultContainer] accountStatusWithCompletionHandler:^(CKAccountStatus accountStatus, NSError *error) {

That makes sense. Try to use the function that requires some sort of permission suitable for inclusion in the Settings app

Peter B. Kramer
  • 16,385
  • 1
  • 16
  • 20