如何配置 iOS 应用程序以在特定设备上运行? [英] How to configure iOS app to work on specific devices?
问题描述
我正在使用 ZBar SDK 开发用于 QR 码扫描的 iOS 应用程序.这里 ZBar SDK 创建者告诉我们
<块引用>仅支持 iPhone 3GS 和 iPhone 4,因为它们有摄像头带自动对焦.ZBar 库不支持 iPhone 3G 和不太可能支持它.
所以我在 plist 的 Required Device Capabilities
部分添加了 auto-focus-camera
键.一切都很好,除了一件事 - iPad 2 &iPod Touch 4th Gen 没有自动对焦摄像头,但仍然可以使用我的 ZBar SDK 代码来扫描二维码.但是我的 auto-focus-camera
键不允许使用 iPad 2 和 iPod Touch 4th Gen 的用户从 App Store 下载我的应用程序.
换句话说,我需要找到一种方法让我的应用可以通过 App Store 在这些设备上安装:
- iPhone 3GS.
- iPhone 4.
- iPhone 4S.
- iPad 2.
- 新 iPad.
- 第四代 iPod Touch
在这些设备上我的应用不应该可用:
- iPhone 2G.
- iPhone 3G.
- iPad.
- iPod Touch 3d Gen 和
我的问题是:如何让我的应用在 App Store 中可供第一列设备的用户使用,而不可供第二列设备的用户使用?
任何帮助将不胜感激!
PS:我在 SO 上看到了这个问题,但对我帮助不大.
PS2:这个应用一组可用的设备.
<块引用>要求:兼容 iPhone 3GS、iPhone 4、iPhone 4S、iPod触控(第 4 代)、iPad 2 Wi-Fi、iPad 2 Wi-Fi + 3G、iPad(第 3一代)和 iPad Wi-Fi + 4G.
有谁知道,他们是怎么做到的?
PS3:同时添加 still-camera
和 auto-focus-camera
给了我们这个:
要求:兼容 iPhone、iPod touch(第 4 代)、iPad 2 Wi-Fi、iPad 2 Wi-Fi + 3G、iPad(第 3 代)和 iPad Wi-Fi+ 4G.
只要我们拥有适合我们应用的所有 iPhone,而不是 3GS、4 和 4S,这并不是一个好方法.
PS4:我的应用 是这里,它有这样的要求:
<块引用>要求:兼容 iPhone 3GS、iPhone 4 和 iPhone 4S.
我们需要在应用的 plist 的 Required Device Capabilities
部分使用 video-camera
键.>
I am developing iOS app with ZBar SDK for QR-codes scan. Here ZBar SDK creators tell us that
Only the iPhone 3GS and iPhone 4 are supported, as they have a camera with auto-focus. The ZBar library does not support the iPhone 3G and is unlikely to ever support it.
So I have added auto-focus-camera
key to the Required Device Capabilities
section of my plist. All is great, except one thing - iPad 2 & iPod Touch 4th Gen doesn't have auto focus camera, but still are able to use my ZBar SDK code to scan QR-codes. But my auto-focus-camera
key doen't allow users with iPad 2 and iPod Touch 4th Gen to download my app from App Store.
In other words I need to find a way to make my app installable via App Store on these devices:
- iPhone 3GS.
- iPhone 4.
- iPhone 4S.
- iPad 2.
- The New iPad.
- iPod Touch 4th Gen.
And on these devices my app should not be available:
- iPhone 2G.
- iPhone 3G.
- iPad.
- iPod Touch 3d Gen and
My question is: how to make my app available in App Store for first list devices' user and not available for second list devices' users?
Any help will be appreciated!
PS: I have seen this question on SO, but it doesn't help me much.
PS2: This app has the desired set of available devices.
Requirements: Compatible with iPhone 3GS, iPhone 4, iPhone 4S, iPod touch (4th generation), iPad 2 Wi-Fi, iPad 2 Wi-Fi + 3G, iPad (3rd generation) and iPad Wi-Fi + 4G.
Does anyone know, how they did it?
PS3: At the same time adding both still-camera
and auto-focus-camera
gives us this:
Requirements: Compatible with iPhone, iPod touch (4th generation), iPad 2 Wi-Fi, iPad 2 Wi-Fi + 3G, iPad (3rd generation) and iPad Wi-Fi + 4G.
And that is not a great way as long as we have all iPhones as suitable for our app, instead of 3GS, 4 and 4S.
PS4: My app is here and it has such requirements:
Requirements: Compatible with iPhone 3GS, iPhone 4, and iPhone 4S.
We need to use video-camera
key in Required Device Capabilities
section of app's plist.
这篇关于如何配置 iOS 应用程序以在特定设备上运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!