Frederico Novack Amaral Pereir Frederico Novack Amaral Pereir - 10 months ago 88
iOS Question

Intel XDK how to build for iPhone only?

I'm trying to build an iOS app using intel XDK. My Application works fine in iPhone but it's giving me a bug when being executed with iPad, so that's blocking my app to the App Store, as Apple reviewers notice this bug.

What I want to do is to build my app only for iPhone, I don't want it to run on iPad. How can I do this? Where do I set this on Intel XDK? Is it on Itunes Connect?


There is no proper way to do this through intel XDK. What you have to do is go do your additions.xml and over iOS part you add one of these tags:

<preference name="target-device" value="tablet" />     <!-- Installs on iPad, not on iPhone -->
<preference name="target-device" value="handset" />    <!-- Installs on iPhone, iPad installs in a zoomed view and doesn’t fill the entire screen -->
<preference name="target-device" value="universal" />  <!-- Installs on iPhone and iPad correctly -->