Required Device Capabilities

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


GetCapabilities Description: This method has been replaced by the more generic GetServices method. For capabilities of individual services refer to the GetServiceCapabilities methods. SOAP action: http://www.onvif.org/ver10/device/wsdl/GetCapabilities Input: [GetCapabilities] Category - optional, unbounded; [CapabilityCategory] List of categories to retrieve capability information on. - enum { 'All', 'Analytics', 'Device', 'Events', 'Imaging', 'Media', 'PTZ' } Output: [GetCapabilitiesResponse] Capabilities [Capabilities] Capability information. Analytics - optional; [AnalyticsCapabilities] Analytics capabilities XAddr [anyURI] Analytics service URI. RuleSupport [boolean] Indicates whether or not rules are supported. AnalyticsModuleSupport [boolean] Indicates whether or not modules are supported. Device - optional; [DeviceCapabilities] Device capabilities XAddr [anyURI] Device service URI. Network - optional; [NetworkCapabilities] Network capabilities. IPFilter - optional; [boolean] Indicates whether or not IP filtering is supported. ZeroConfiguration - optional; [boolean] Indicates whether or not zeroconf is supported. IPVersion6 - optional; [boolean] Indicates whether or not IPv6 is supported. DynDNS - optional; [boolean] Indicates whether or not is supported. Extension - optional; [NetworkCapabilitiesExtension] Dot11Configuration - optional; [boolean] Extension - optional; [NetworkCapabilitiesExtension2] System - optional; [SystemCapabilities] System capabilities. DiscoveryResolve [boolean] Indicates whether or not WS Discovery resolve requests are supported. DiscoveryBye [boolean] Indicates whether or not WS-Discovery Bye is supported. RemoteDiscovery [boolean] Indicates whether or not remote discovery is supported. SystemBackup [boolean] Indicates whether or not system backup is supported. SystemLogging [boolean] Indicates whether or not system logging is supported. FirmwareUpgrade [boolean] Indicates whether or not firmware upgrade is supported. SupportedVersions - unbounded; [OnvifVersion] Indicates supported ONVIF version(s). Major [int] Major version number. Minor [int] Two digit minor version number. If major version number is less than "16", X.0.1 maps to "01" and X.2.1 maps to "21" where X stands for Major version number. Otherwise, minor number is month of release, such as "06" for June. Extension - optional; [SystemCapabilitiesExtension] HttpFirmwareUpgrade - optional; [boolean] HttpSystemBackup - optional; [boolean] HttpSystemLogging - optional; [boolean] HttpSupportInformation - optional; [boolean] Extension - optional; [SystemCapabilitiesExtension2] IO - optional; [IOCapabilities] I/O capabilities. InputConnectors - optional; [int] Number of input connectors. RelayOutputs - optional; [int] Number of relay outputs. Extension - optional; [IOCapabilitiesExtension] Auxiliary - optional; [boolean] AuxiliaryCommands - optional, unbounded; [AuxiliaryData] Extension [IOCapabilitiesExtension2] Security - optional; [SecurityCapabilities] Security capabilities. TLS1.1 [boolean] Indicates whether or not TLS 1.1 is supported. TLS1.2 [boolean] Indicates whether or not TLS 1.2 is supported. OnboardKeyGeneration [boolean] Indicates whether or not onboard key generation is supported. AccessPolicyConfig [boolean] Indicates whether or not access policy configuration is supported. X.509Token [boolean] Indicates whether or not WS-Security X.509 token is supported. SAMLToken [boolean] Indicates whether or not WS-Security SAML token is supported. KerberosToken [boolean] Indicates whether or not WS-Security Kerberos token is supported. RELToken [boolean] Indicates whether or not WS-Security REL token is supported. Extension - optional; [SecurityCapabilitiesExtension] TLS1.0 [boolean] Extension - optional; [SecurityCapabilitiesExtension2] Dot1X [boolean] SupportedEAPMethod - optional, unbounded; [int] EAP Methods supported by the device. The int values refer to the IANA EAP Registry. RemoteUserHandling [boolean] Extension - optional; [DeviceCapabilitiesExtension] Events - optional; [EventCapabilities] Event capabilities XAddr [anyURI] Event service URI. WSSubscriptionPolicySupport [boolean] Indicates whether or not WS Subscription policy is supported. WSPullPointSupport [boolean] Indicates whether or not WS Pull Point is supported. WSPausableSubscriptionManagerInterfaceSupport [boolean] Indicates whether or not WS Pausable Subscription Manager Interface is supported. Imaging - optional; [ImagingCapabilities] Imaging capabilities XAddr [anyURI] Imaging service URI. Media - optional; [MediaCapabilities] Media capabilities XAddr [anyURI] Media service URI. StreamingCapabilities [RealTimeStreamingCapabilities] Streaming capabilities. RTPMulticast - optional; [boolean] Indicates whether or not RTP multicast is supported. RTP_TCP - optional; [boolean] Indicates whether or not RTP over TCP is supported. RTP_RTSP_TCP - optional; [boolean] Indicates whether or not RTP/RTSP/TCP is supported. Extension - optional; [RealTimeStreamingCapabilitiesExtension] Extension - optional; [MediaCapabilitiesExtension] ProfileCapabilities [ProfileCapabilities] MaximumNumberOfProfiles [int] Maximum number of profiles. PTZ - optional; [PTZCapabilities] PTZ capabilities XAddr [anyURI] PTZ service URI. Extension - optional; [CapabilitiesExtension] DeviceIO - optional; [DeviceIOCapabilities] XAddr [anyURI] VideoSources [int] VideoOutputs [int] AudioSources [int] AudioOutputs [int] RelayOutputs [int] Display - optional; [DisplayCapabilities] XAddr [anyURI] FixedLayout [boolean] Indication that the SetLayout command supports only predefined layouts. Recording - optional; [RecordingCapabilities] XAddr [anyURI] ReceiverSource [boolean] MediaProfileSource [boolean] DynamicRecordings [boolean] DynamicTracks [boolean] MaxStringLength [int] Search - optional; [SearchCapabilities] XAddr [anyURI] MetadataSearch [boolean] Replay - optional; [ReplayCapabilities] XAddr [anyURI] The address of the replay service. Receiver - optional; [ReceiverCapabilities] XAddr [anyURI] The address of the receiver service. RTP_Multicast [boolean] Indicates whether the device can receive RTP multicast streams. RTP_TCP [boolean] Indicates whether the device can receive RTP/TCP streams RTP_RTSP_TCP [boolean] Indicates whether the device can receive RTP/RTSP/TCP streams. SupportedReceivers [int] The maximum number of receivers supported by the device. MaximumRTSPURILength [int] The maximum allowed length for RTSP URIs. AnalyticsDevice - optional; [AnalyticsDeviceCapabilities] XAddr [anyURI] RuleSupport - optional; [boolean] Obsolete property. Extension - optional; [AnalyticsDeviceExtension] Extensions - optional; [CapabilitiesExtension2]这个接口该怎么回复一个支持media2的报文
最新发布
10-12
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值