Rejected App due to HealthKit (HealthKit is not referenced)

Getting into LiveCode for iOS? Ask your questions here.

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

simon.schvartzman
Posts: 240
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Re: Rejected App due to HealthKit (HealthKit is not referenced)

Post by simon.schvartzman » Sat Mar 09, 2019 3:22 pm

I wonder if it isn't the case for LC to provide some kind of tool to help dealing with this issues. Of course this is only valid until the definite solution is added to the IDE itself.

It seems something like a "plist editor" would be very useful.

Does it make sense?
Simon
________________________________________
To ";" or not to ";" that is the question

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4873
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Rejected App due to HealthKit (HealthKit is not referenced)

Post by jacque » Sun Mar 10, 2019 6:05 pm

Mac OS X already has a plist editor we can use if that's preferable to a text editor.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

simon.schvartzman
Posts: 240
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Re: Rejected App due to HealthKit (HealthKit is not referenced)

Post by simon.schvartzman » Mon Mar 11, 2019 7:44 pm

Thanks Jacque. I guess I wasn't clear enough my suggestion was about a kind of "editor" that would handle (at once) all the steps involved in the process described by Panos
- Open the existing plist file (of the app you just built) with a text editor
- Delete the following part:

<key>NSHealthShareUsageDescription</key>
<string>This application requires access to read the user's health data</string>
<key>NSHealthUpdateUsageDescription</key>
<string>This application requires access to update the user's health data</string>

- Save the Info.plist file
- Open the standalone application settings, go to Copy Files section and add the Info.plist file you just saved.
- Save as standalone. The new standalone should be OK. You can verify it by checking the new Info.plist file
But I understand it may be too much to ask for...
Simon
________________________________________
To ";" or not to ";" that is the question

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4873
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Rejected App due to HealthKit (HealthKit is not referenced)

Post by jacque » Mon Mar 11, 2019 8:03 pm

Well, the good news is that the fix has already been merged into the next release. So it's moot until next time. :-)
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

teacherguy
Posts: 365
Joined: Thu Dec 08, 2011 2:43 am

Re: Rejected App due to HealthKit (HealthKit is not referenced)

Post by teacherguy » Tue Mar 12, 2019 7:47 pm

I just had an app updated held up by this as well. Not sure why it is an issue now when an update from just a few days ago was accepted. Will try the workaround Panos mentioned above.

teacherguy
Posts: 365
Joined: Thu Dec 08, 2011 2:43 am

Re: Rejected App due to HealthKit (HealthKit is not referenced)

Post by teacherguy » Tue Mar 12, 2019 11:40 pm

OK, when I opened the plist in Xcode I noticed the plist was requiring *many* features that my app does not use: Access to contact, reminders, photos, camera, location, and more. So I deleted all of these. Well, that did not work. I got an email alter from Apple about "Missing purpose string" that justifies why my app needs to access the photo library (which it doesn't, but anyway...) so I resubmitted a version with only the Healthkit lines deleted, and that appears to have worked as per normal.

But Panos...in addition to the bug you entered regarding Healthkit, are you also addressing all of the features that seemed to be included in the plist even when our apps do not require them?

Thanks

tcbretl
Posts: 5
Joined: Sat Feb 17, 2007 2:08 pm

Re: Rejected App due to HealthKit (HealthKit is not referenced)

Post by tcbretl » Wed Mar 13, 2019 3:14 pm

The instructions for modifying the plist worked fine for me. On the first try I forgot to change the build number, but on the second try my app was accepted. Thanks to all who provided the fix. :)

teacherguy
Posts: 365
Joined: Thu Dec 08, 2011 2:43 am

Re: Rejected App due to HealthKit (HealthKit is not referenced)

Post by teacherguy » Wed Mar 13, 2019 6:34 pm

First of two apps just passed, thanks Panos.

Jim Mac
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 25
Joined: Wed Jun 28, 2006 9:22 pm

Re: Rejected App due to HealthKit (HealthKit is not referenced)

Post by Jim Mac » Sat Mar 16, 2019 5:44 pm

Just loaded 9.0.3 RC 2.
Definitely fixed the PlugIn storm issue I was seeing.
Was hoping it'd include the HealthKit pList fix so I wouldn't have to manually maintain the pList for my app but no luck.

Any idea when this fix will be in?

Until then, I'll try to remember to update build numbers in the fixed pList before submitting....
.... for some reason I ALWAYS forget to do that and get a nice... "You've already loaded this build you idiot" from Apple

teacherguy
Posts: 365
Joined: Thu Dec 08, 2011 2:43 am

Re: Rejected App due to HealthKit (HealthKit is not referenced)

Post by teacherguy » Fri Mar 22, 2019 3:02 pm

9.0.3 is released and it does fix. Though...still wondering why the plist still shows many features in use that my app does not use (camera, location, photo library etc.) but it least it does not generate an error when submitting.

Post Reply

Return to “iOS Deployment”