Setting Required Hardware Capabilities
If your application requires specific hardware features in order to run you can add a list of required capabilities to your application’s Info.plist file. Your application will not start unless those capabilities are present on the device.
To do this, open the project and click on the application’s Info.plist file to open it in the Xcode editor. Click on the bottommost entry in the list. A plus button will appear to the right-hand side of the key-value pair table.
Click on this button to add a new row to the table, and scroll down
the list of possible options and select “Required device capabilities”
(the UIRequiredDeviceCapabilities key).
This will add an (empty) array to the plist file.
The allowed values for the keys are:
telephonywifismsstill-cameraauto-focus-camerafront-facing-cameracamera-flashvideo-cameraaccelerometergyroscopelocation-servicesgpsmagnetometergamekitmicrophoneopengles-1opengles-2armv6armv7peer-peer
A full description of the possible keys is given in the Device Support section of the iPhone Application Programming Guide available from the iPhone Development Center.
Persistent WiFi
If your application requires a persistent WiFi connection you can
set the Boolean UIRequiresPersistentWiFi key in the
Application’s Info.plist file to
ensure that WiFi is available. If set to YES the operating system will open a WiFi connection when your application is launched and keep it open while the application is running. If this key is not present, ...