How can I restrict my iOS Project to iPhone 4 Only
I'm using a barcode scanner library within my iOS p开发者_JS百科roject 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?
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.
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!
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.
精彩评论