Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Francesco_F_
Beginner
75 Views

preference name="target-device" value="handset" not working

Hello,

After upgrading to the IntelXDK build 3088 my additions.xml file setting for target-device set to handset seems to be ignored as iTunes connect is complaining I need to upload iPad screenshots.
 
Additions.xml file setting:
<preference name="target-device" value="handset" />
 
When I look at the build log I can see the following:
 --target-device iphone --target-device ipad --minimum-deployment-target 8.0 
 
Not sure if I'm missing something new or the backend build service has issues. Does anyone have a solution for this?
 
Thanks in advance :-)
 
Francesco
Tags (2)
0 Kudos
5 Replies
Swati_S_Intel1
Employee
75 Views

Please make sure you are putting 

<preference name="target-device" value="handset" /> 

under the 

<platform name="ios"> tag.

0 Kudos
Francesco_F_
Beginner
75 Views

Hi Swati,

Thanks for your suggestion. I tried what you suggested for the additions.xml file but it didn't work:

<platform name="ios"><preference name="target-device" value="handset" /></platform>

I also tried:


<!-- +iOS --><preference name="target-device" value="handset" />

Both still produce 
--target-device iphone --target-device ipad in the output logs.

I noticed in my intelxdk.config.ios.xml file I have two <platform name="ios"> xml nodes:

1. <platform name="ios"><preference name="Orientation" value="portrait"/></platform>

2. <platform name="ios"><preference name="target-device" value="handset"/></platform>

Not sure if this is having any impact. Is there anything else you could suggest?

Thanks

Francesco

 

0 Kudos
Pamela_H_Intel
Moderator
75 Views

Thank you Francesco for creating this post. Paul was able to duplicate the problem. It seems to be a Cordova bug, but we are trying to find a work around. Please see: https://software.intel.com/en-us/forums/intel-xdk/topic/549481#comment-1866851

 

0 Kudos
Francesco_F_
Beginner
75 Views

Hi Intel,

do you guys have any news on a possible solution for this issue?

thanks

Francesco

0 Kudos
PaulF_IntelCorp
Employee
75 Views

Francesco -- the issue is still under investigation and is marked as a "must-fix" for our next release. It is definitely a Cordova bug, a patch for the Cordova problem has not been identified at this time.

0 Kudos