Search code examples
ioscordovaapp-store-connectintel-xdk

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?


Solution

  • 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 -->
    2
    <preference name="target-device" value="handset" />    <!-- Installs on iPhone, iPad installs in a zoomed view and doesn’t fill the entire screen -->
    3
    <preference name="target-device" value="universal" />  <!-- Installs on iPhone and iPad correctly -->