Specify device family in Info.plist

Cosmin picture Cosmin · Aug 6, 2013 · Viewed 11.2k times · Source

Is there a way to specify the device family solely based on a key in Info.plist, without changing the build settings? I have read about UIDeviceFamily being added automatically to Info.plist at build time, and the documentation says that I should not add this key manually. Let's say I cannot use Xcode, but I can edit Info.plist, is there a way to specify if the app should be running only on iPhone (or iPad)?

Thank you,

Answer

Tony picture Tony · Nov 14, 2013

check out the docs in UIDeviceFamily

UIDeviceFamily

if you need to only support ipad, set the DeviceFamily to 2. For iphone set to 1. For universe include both 1 and 2