Required Device Capabilities

来源:互联网 发布:淘宝直播卖家申请入口 编辑:程序博客网 时间:2024/06/15 15:32

Required Device Capabilities


Declaring the Required Device Capabilities

If your application requires device-related features in order to run, you must add a list of required capabilities to your application. At runtime, iOS will not launch your application unless those capabilities are present on the device. Further, the App Store requires this information so that it can generate a list of requirements for user devices and prevent users from downloading applications that they cannot run.

如果你想你的APP限制在具有某种特性条件的设备上运行时,可以在info.plist中添加Required Device Capabilities参数,进行设置。

比如在info.plist中设置如下,那么只有具有wifi、电话功能和麦克风(内置的或附件所带的麦克风功能)的ios设备才能运行该程序。



除了wifi和telephony项,还有很多项代表各种设备功能,如下:

sms应用程序需要Messages应用程序或者使用sms://URLstill-camera应用程序需要使用照相机模式作为图像选取器的控制器auto-focus-camera应用程序需要使用更多的聚焦功能以进行微距摄影或者拍摄特别清晰的图像以进行图像内数据检测video-camera应用程序需要使用视频模式作为图像选取器的控制器accelerometer应用程序需要特定于加速计的反馈而不知是简单的UIViewController方向事件location-services应用程序需要使用Core Locationgps应用程序需要使用Core Location并需要更加精确的gps定位magnetometer应用程序需要使用Core Location并需要与前进方向相关的事件,即行进的方向(通过磁力计获得)peer-peer应用程序需要使用GameKit通过蓝牙(3.1或更高版本)进行对等连接opengles-1应用程序需要OpenGL ES 1.1opengles-2应用程序需要OpenGL ES 2.0armv-6应用程序仅针对armv6指令集(3.1或更高版本)编译armv-7应用程序仅针对armv7指令集(3.1或更高版本)编译peer-peer

应用程序需要和其他终端通过蓝牙连接。



////////////////////////////////////////
提示不支持的架构不能安装
VVM.app cannot be installed on iPhone-VVMTest. VVM.app requires the “arm64” capability which is not supported by iPhone-VVMTest
则是选择的设备架构不匹配,iPhone5是armv7s架构,而这里info.plist中的Required device capabilities选择的是arm64架构,所以不能在iPhone5上运行,如果不需要限制安装,可以选择删除Required device capabilities该项设置。


0 0