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

1

68

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?

Wiencke answered 5/6, 2012 at 19:57 Comment(0)
J
123

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

Jailer answered 5/6, 2012 at 20:3 Comment(6)
or (speculating) Apple TV could get in the mix thereIncorporate
Today I archive my app and it was giving me .pkg file so I added this key and now I added this key so that I could archive it as .ipa file (xcode 6.0.1)Kansas
Isn't this an artifact of the very early days of "iPhoneOS", when iPods were sold without it, but could be upgraded to iPhoneOS, and allow them to use the new App Store? I don't think it's about future possibilities.Pete
^ Seems more likely given the oddly misleading name. I'd imagine everyone landed here because they were worried this meant their application wouldn't work on an iPadBreban
Nice prediction there :)Photooffset
And it's 2020 and we now know ARM MacBooks will be able to run iOS apps ;)Terrieterrier

© 2022 - 2024 — McMap. All rights reserved.