无法在iOS4的Info.plist中创建UIBackgroundModes密钥 [英] Unable to create UIBackgroundModes key in Info.plist for iOS4
问题描述
我有一个音频应用程序,非常适合iPhone 3.1.x
版本.
I have an audio application which works great for iPhone 3.1.x
versions.
我正在尝试将其升级到 iOS4.0 以在多任务环境中工作.当我尝试在info.plist
中创建新的UIBackgroundModes
键时,它(必需的背景模式")没有显示在下拉列表中吗?
I am trying to upgrade it to iOS4.0 to work in multitasking environment. When I try to create a new UIBackgroundModes
key in info.plist
, it ("Required Background Modes") doesn't show up in drop down list?
我还将Xcode SDK升级到3.2.3,将Base SDK升级到4.0,将部署目标升级到4.0,但是UIBackgroundModes
(必需的后台模式")仍然不会显示在info.plist
下拉列表中.
I also upgraded the Xcode SDK to 3.2.3, Base SDK to 4.0, deployment target to 4.0 but still UIBackgroundModes
("Required Background Modes") won't show up in info.plist
drop down list.
我还为4.0创建了测试项目,其info.list下拉列表具有所需的后台模式".
I also created test project for 4.0, and its info.list drop down list has "Required Background Modes".
我错过了什么吗?
推荐答案
您可以通过编辑.plist文件来手动添加密钥
You can add the key manually by edit the .plist file
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
</array>
这篇关于无法在iOS4的Info.plist中创建UIBackgroundModes密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!