Vikings
Vikings

Reputation: 2527

iPhone Target Certain Devices

I'm want to target the iPhone 4, iPhone 4S, iPod Touch (4th generation). I do not want to target the iPhone 3G and iPhone 3GS. I've seen some post that said this is not possible. However, I notice in the App Store that some apps do this such as the picture below.

How would I accomplish this?

enter image description here

Upvotes: 2

Views: 119

Answers (3)

Chris Livdahl
Chris Livdahl

Reputation: 4740

In addition to setting the features the device needs with UIRequiredDeviceCapabilities, you can also specify the minimum iOS version that needs to be installed.

See this Apple Technical Note, TN2250.

Upvotes: 0

Jim
Jim

Reputation: 73936

Those requirements show up because the developers have put armv7 as an entry in the UIRequiredDeviceCapabilities Info.plist key. There's no key specifically to target the iPhone 4 and up, although you can probably eliminate the 3GS using one of the other keys.

Why are you trying to stop people from installing your app on older devices?

Upvotes: 3

ckhan
ckhan

Reputation: 4791

I believe you want to set UIRequiredDeviceCapabilities to specify exactly which features your app needs. For example, the camera-flash key is only going to be true for iPhone4 and later, if that's what you need.

There's also a Q&A article on it.

Upvotes: 1

Related Questions