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

IosObjective CXcodeAppletinfo.plist

Ios Problem Overview


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?

Ios Solutions


Solution 1 - Ios

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)?

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionwaylonionView Question on Stackoverflow
Solution 1 - IosMichael DautermannView Answer on Stackoverflow