What is the meaning of the "Application Requires iPhone Environment" key in info.plist?

wayway picture wayway · Jun 5, 2012 · Viewed 20.7k times · Source

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?

Specifically, the entry: APPLICATION REQUIRES IPHONE ENVIRONMENT

If set to yes, does that imply only an iPhone is capable of running my app, meaning an iPod Touch or iPad won't be able to run the app?

Answer

Michael Dautermann picture Michael Dautermann · Jun 5, 2012

Here's Apple's documentation on the "LSRequiresiPhoneOS" bits of an application's info.plist file.

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.

Who knows, maybe in the not-so-distant future, MacOS will be able to run iOS apps (or vice versa)?