Targeting a device (not an iOS)
Is this possible? I want to target iOS 4.0 and the iPhone 4 device i开发者_运维知识库n my App Store distribution build. How would I do that?
Thanks!
Applications can (and should) be limited to specific device capabilities, not to specific models - you can use UIRequiredDeviceCapabilities
in application info.plist file for that (check the list of available keys here in "iTunes requirements" section.)
So the key to be used will depend to what functions your application require, it seems you can use front-facing-camera
as only iphone4 currently has that.
You cannot limit to a certain device but you can limit to devices with certain capabilities. E.g. you could declare that your app requires telephony and front-facing-camera. That would more or less restrict your app to the iPhone 4G.
Required capabilities are declared in the Info.plist
file
This is not possible and IMHO not wanted by Apple. I don't think that a target device would have any impact on limitation of device, if it was possible. However if your App relies on a fast device and it's unsuable on a 3g you may have to improve performance.
精彩评论