Mike Buckbee
Mike Buckbee

Reputation: 6983

How can I restrict my iOS Project to iPhone 4 Only

I'm using a barcode scanner library within my iOS project that currently only supports iPhone 4 devices. Is it possible to restrict the application submission so that only iPhone 4 users can load it, is this a cause for rejection from the App Store?

Upvotes: 4

Views: 7285

Answers (3)

Jeremy Fuller
Jeremy Fuller

Reputation: 3401

In your Xcode target configuration, under the Deployment group, change the iOS Deployment Target to the desired version. This will not cause a rejection of your app.

Edit: The original question was ambiguous. This answer refers to how to restrict your app to iOS 4.

Upvotes: 6

Ben M.
Ben M.

Reputation: 39

I would check out the UIRequiredDeviceCapabilities in the SDK. It is generally Apple's policy to try to make your app available to all devices. I can't remember off the top of my head if the App store will only show Apps that are made to work on the device or if the App store does a blanket view.

Upvotes: 1

donkim
donkim

Reputation: 13137

You could try something like:

<key>UIRequiredDeviceCapabilities</key>
<array>
    <string>gyroscope</string>
</array>

This will restrict it to only iPhones that have the gyroscope, which is iPhone4 and beyond.

Not sure this is the best way, but it should work.

Hope this helps!

Upvotes: 5

Related Questions