UIRequiredDeviceCapabilities ...

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
paulsr
Posts: 222
Joined: Thu Jul 19, 2012 9:47 am
Contact:

UIRequiredDeviceCapabilities ...

Post by paulsr » Sat Mar 14, 2015 9:09 am

Greetings:

I *really* hope someone can help me with this because I have two apps for which I am now unable to provide updates.

Whenever I try to submit a binary I get an error which says:
The app's Info.plist can't contain values for the UIRequiredDeviceCapabilities key that would prevent this app from opening on any iOS device.
I have built the apps using LC7.0.3, and I have built for iOS 7.0 or later.

Under Requirements and Restrictions I have specified that "Location Services" and "GPS" are required. The rest I have left as "n/a".

If I look in Info.plist I see...

Code: Select all

<key>UIRequiredDeviceCapabilities</key>
        <dict>                <key>location-services</key><true/><key>gps</key><true/>
        </dict>
And for the "gps" parameter, Apple's documentation says...
Include this key if your app requires (or specifically prohibits) the presence of GPS (or AGPS) hardware when tracking locations. (You should include this key only if you need the higher accuracy offered by GPS hardware.) If you include this key, you should also include the location-services key.
So ... I can't see anything wrong.

The thing is, these are apps that are in the iTunes store, so something must have changed. I haven't updated them in a while, so I don't know what the change is.

Does anyone have any ideas?

Many thanks...

--paul

paulsr
Posts: 222
Joined: Thu Jul 19, 2012 9:47 am
Contact:

Re: UIRequiredDeviceCapabilities ...

Post by paulsr » Sat Mar 14, 2015 12:39 pm

Additional Info:

I have tried Location Authorization Type set to Always, and to When In Use. Same problem.

--paul

brandcode
Posts: 28
Joined: Mon Dec 01, 2014 12:28 pm

Re: UIRequiredDeviceCapabilities ...

Post by brandcode » Sat Mar 14, 2015 5:28 pm

I have the same problem when i send my app to app store.The ipad with Gps Checked have the same answer like above said.
I change from application settings in LC from "Required" to "Prohibited" and all working fine.

paulsr
Posts: 222
Joined: Thu Jul 19, 2012 9:47 am
Contact:

Re: UIRequiredDeviceCapabilities ...

Post by paulsr » Sun Mar 15, 2015 5:04 am

Thanks for that brandcode. It sounds bizarre, but if it works...!

Plz can you confirm that when you say "Prohibited" you really mean that. I would have thought that would have prevented an app from accessing GPS info.

Wouldn't "n/a" be the better choice?

Thanks,

--paul

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: UIRequiredDeviceCapabilities ...

Post by Simon » Sun Mar 15, 2015 6:53 am

Hi Paul,
Do you have iPod selected? Some don't have wifi (location services).

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

paulsr
Posts: 222
Joined: Thu Jul 19, 2012 9:47 am
Contact:

Re: UIRequiredDeviceCapabilities ...

Post by paulsr » Sun Mar 15, 2015 8:08 am

Hi Simon,

I'm having the same problem with two apps...

One is iPad only, so I select "iPad" as the "build for" setting.

The other is for iPhone, and I have no choice but to select "iPod and iPhone" even tho I know the app won't work on an iPod.

They are both being rejected by Apple.

I saw a suggestion somewhere of setting Telephony to Required, which supposedly prevents the app being sold for an iPod, but what's the difference between doing that and having LocSvcs/GPS set to Required?

I think I have no choice other than submitting the apps with Location Services and GPS set to n/a to see if they will be accepted.

These days, are there iPhones/iPads without GPS?

--paul

Post Reply