Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Target iPhone application by model (e.g. 3G vs 3GS)

Much like the required device capabilities on the info.plist file, is it possible to configure an application such that it will only be available on some device models?

I know how to target it by device family (iPhone&iPod vs iPad), but in this case I'm looking to target by model. I also know how to programmatically determine the model, but what I want is for iTunes to prevent some device models from being able to download an app, which is why doing it via info.plist seems like it would be the best way.

For instance, if I wanted an app to be available on iPhone 3GS (or iPhone/iPod 4) and upper but NOT on iPhone 3G, is there any way to do it?

like image 710
André Morujão Avatar asked Nov 24 '10 15:11

André Morujão


2 Answers

You might want to look into UIRequiredDeviceCapabilities.

like image 75
Goz Avatar answered Oct 23 '22 05:10

Goz


Put armv7 in the UIRequiredDeviceCapabilities of the app's info.plist. That will prevent an app from loading on an iPhone 3G, which uses the armv6 processor architecture.

like image 2
hotpaw2 Avatar answered Oct 23 '22 03:10

hotpaw2