Why is my iOS app forcing a Settings Bundle

六眼飞鱼酱① 提交于 2019-11-28 09:52:08

问题


I can not figure out why when I debug my app it always has a Settings Bundle. The only option in the settings page is "Use Cellular Data." It has the Settings Bundle on my iPhone 6 Plus, but not on my 4S. I have deleted my app, cleaned my project, and deleted the derived data in Organizer. I have never had a Settings.bundle in my project before. I've tested all my libraries in another app, it does not force a setting bundle. Both iPhones are running iOS 8.2. Is there anything I'm missing? Is there any secret Xcode build setting or plist setting that's forcing this Settings Bundle?


回答1:


As of iOS 8.0, a settings page is shown for all apps even if the app doesn't have a settings bundle.

The iOS 8 settings page appears without a settings bundle if the app does any of the following:

  • Attempts to access data via a cellular network
  • Various privacy data
    • Camera
    • Microphone
    • Photo library
    • Contacts
  • Location
  • Notifications
  • Background data fetch

A settings page may not appear for an app if none of these conditions have yet been met.



来源:https://stackoverflow.com/questions/29197119/why-is-my-ios-app-forcing-a-settings-bundle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!