xcode info.plist 中的“Application Requires iPhone Environment”键是什么意思?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10904039/
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
What is the meaning of the "Application Requires iPhone Environment" key in info.plist?
提问by wayway
I'm having trouble understanding the specific requirements in the info.plist
file in my app. Should I change it at all, or are the default settings typically the "correct" options?
我无法理解info.plist
我的应用程序文件中的具体要求。我应该完全改变它,还是默认设置通常是“正确”的选项?
Specifically, the entry: APPLICATION REQUIRES IPHONE ENVIRONMENT
具体来说,条目:APPLICATION REQUIRES IPHONE ENVIRONMENT
If set to yes, does that imply only an iPhoneis capable of running my app, meaning an iPod Touch or iPad won't be able to run the app?
如果设置为 yes,是否意味着只有iPhone能够运行我的应用程序,意味着 iPod Touch 或 iPad 将无法运行该应用程序?
回答by Michael Dautermann
Here's Apple's documentation on the "LSRequiresiPhoneOS" bitsof an application's info.plist file.
这是Apple 关于应用程序 info.plist 文件的“LSRequiresiPhoneOS”位的文档。
Basically all it means is that the app is designed to run under iOS. This flag should be set to YES no matter if the target device is an iPhone, iPod Touch or iPad.
基本上,这意味着该应用程序旨在在 iOS 下运行。无论目标设备是 iPhone、iPod Touch 还是 iPad,此标志都应设置为 YES。
Who knows, maybe in the not-so-distant future, MacOS will be able to run iOS apps (or vice versa)?
谁知道,也许在不久的将来,MacOS 将能够运行 iOS 应用程序(反之亦然)?