Unable to create UIBackgroundModes key in Info.plist for iOS4

后端 未结 3 736
时光取名叫无心
时光取名叫无心 2020-12-05 09:00

I have an audio application which works great for iPhone 3.1.x versions.

I am trying to upgrade it to iOS4.0 to work in multitasking en

相关标签:
3条回答
  • 2020-12-05 09:18

    Be sure that if you create the UIBackgroundModes item in Xcode (not by editing the XML manually) that you create the new key as type ARRAY, then add a new item (it will appear as "Item 0" by default) with a value of "audio". If you simply create a string key with value "audio", it will not work.

    0 讨论(0)
  • Re Woodmantech's answer: Xcode 3.2 changed the nomenclature a bit when adding this key in Xcode. The key is called "Required background modes" and Item 0 should be set to "App plays audio." Both are available through the GUI dropdown menu

    0 讨论(0)
  • 2020-12-05 09:22

    You can add the key manually by edit the .plist file

        <key>UIBackgroundModes</key>
        <array>
                <string>audio</string>
        </array>
    
    0 讨论(0)
提交回复
热议问题