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?

Richard Slater
  • 6,313
  • 4
  • 53
  • 81
waylonion
  • 6,866
  • 8
  • 51
  • 92

1 Answers1

121

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

Michael Dautermann
  • 88,797
  • 17
  • 166
  • 215
  • 8
    or (speculating) Apple TV could get in the mix there – bshirley May 24 '13 at 16:53
  • 1
    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) – Inder Kumar Rathore Sep 25 '14 at 03:58
  • 4
    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. – Nate Oct 17 '14 at 09:34
  • 4
    ^ 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 iPad – Charlie Martin Jan 20 '16 at 05:24
  • 10
    Nice prediction there :) – marczellm Oct 01 '19 at 08:58
  • 14
    And it's 2020 and we now know ARM MacBooks will be able to run iOS apps ;) – Kacper Cz Aug 03 '20 at 05:47