xcode UIBackgroundModes 键未显示在 Info.plist 下拉列表中
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3562991/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
UIBackgroundModes key not showing in Info.plist dropdown
提问by TheOtherRob
I am trying to upgrade an older iPhone project to adopt background audio streaming, however the "Required background modes" key is not showing up in the Info.plist drop-down menu.
我正在尝试升级较旧的 iPhone 项目以采用背景音频流,但是“所需的背景模式”键没有显示在 Info.plist 下拉菜单中。
I have set the base SDK to 4.0. Is there another project setting that governs which Info.plist keys are available?
我已将基本 SDK 设置为 4.0。是否有另一个项目设置管理哪些 Info.plist 键可用?
Kind regards,
亲切的问候,
Rob
抢
回答by richy
Open Info.plist as Plain text file and add:
打开 Info.plist 作为纯文本文件并添加:
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
</array>
回答by tobiasbayer
You can open the plist as a text file and enter the key yourself.
您可以将 plist 作为文本文件打开并自己输入密钥。