How can I restrict my iOS Project to iPhone 4 Only

后端 未结 3 1657
长发绾君心
长发绾君心 2021-01-14 18:48

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

相关标签:
3条回答
  • 2021-01-14 19:21

    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.

    0 讨论(0)
  • 2021-01-14 19:34

    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!

    0 讨论(0)
  • 2021-01-14 19:37

    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.

    0 讨论(0)
提交回复
热议问题