Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I restrict my iOS Project to iPhone 4 Only

Tags:

xcode

ios

iphone

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?

like image 950
Mike Buckbee Avatar asked Dec 16 '22 18:12

Mike Buckbee


2 Answers

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.

like image 191
Jeremy Fuller Avatar answered Dec 19 '22 07:12

Jeremy Fuller


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!

like image 33
donkim Avatar answered Dec 19 '22 08:12

donkim