Rejected App due to HealthKit (HealthKit is not referenced)

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Bevan
Posts: 18
Joined: Sat Jan 13, 2018 1:37 am

Rejected App due to HealthKit (HealthKit is not referenced)

Post by Bevan » Wed Feb 27, 2019 3:22 am

Hi, I am submitting an update to an existing app so the iOS12 devices can work. I have apple advising I have HealthKit features in my app, however there is no reference to it and it is not included in the iOS App ID profile.

I do have enablement for the Game Centre & In-App Purchases in the iOS app ID identifier, however I don't use them. Any suggestions if it is referenced anywhere or an issue with Livecode 9.0.3. Thanks.

Info from apple :
Guideline 2.5.1 - Performance - Software Requirements

We noticed that your app uses HealthKit, but your app does not appear to include any primary features that require health or fitness data.

The intended use of HealthKit is to share health or fitness data with other apps or devices, and it should be used only in apps that require this data as a part of the app's core functionality.

Next Steps

To resolve this issue, please remove any HealthKit functionality from your app, as well as any references to this app’s interactivity with HealthKit from the app.
My reply :
Hi there, I use LiveCode for development and the app has no HealthKit functionality and also the iOS app ID has the HealthKit feature disabled.

From Apple
2. 5 Performance: Software Requirements
Hello,

Thank you for your response and for providing this information.

However, upon further review we noticed that the previous issue has not been resolved yet.

Please remove any HealthKit functionality from your app, as well as any references to this app’s interactivity with HealthKit from the app.

We look forward to reviewing your revised app.

Best regards,

App Store Review

Bevan
Posts: 18
Joined: Sat Jan 13, 2018 1:37 am

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

Post by Bevan » Wed Feb 27, 2019 4:21 am

In addition, I just checked the info.plist in the 'Show Package Contents' of the app.

It lists Privacy - Health Share Usage.. & Privacy - Health Update... as This application requires access to update the users health data, with a number of other options also having the same status include Bluetooth, Calendar, Camera, contacts etc.

Any way to turn them off? Especially the Healhkit stuff. All of my standalone options in basic settings are set to 'n/a'

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

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

Post by LiveCode_Panos » Wed Feb 27, 2019 9:51 am

Hello Bevan,

Have you checked "mergHK" in the Inclusions pane of the standalone settings?

If not, then you probably have to modify the plist so as it does not include the HealthKit related entries, and rebuild the standalone. Let me know if you need instructions on how to do that.

Kind regards,
Panos
--

Bevan
Posts: 18
Joined: Sat Jan 13, 2018 1:37 am

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

Post by Bevan » Wed Feb 27, 2019 10:35 am

Hi Panos,

Thanks for the reply. My Inclusions pane is greyed out so I can't select it.

If you could let us know how modify the plist to remove the HealthKit, that would be great. I notice other apps I am developing also have HealthKit settings set like a default.

Thanks,

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

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

Post by LiveCode_Panos » Wed Feb 27, 2019 10:51 am

Hello Bevan,

The Inclusions pane is greyed out because you have chosen "Search for Inclusions" in the General pane of the standalone settings. But the mergHK external cannot be included automatically, so the problem does not seem to come from there.

Ok, so it seems that you have to remove the HealthKit-related entries from the plist. There are a couple of ways to do that. The easier is probably to:

- 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

See this lesson for more details on the process:

http://lessons.livecode.com/m/4069/l/88 ... stom-plist

Important:

Including a custom plist will override any changes you make in the iOS standalone settings, including the version number etc, so if you need to make any changes to your standalone settings remember to update your custom plist or repeat this process to create a new plist file with all the settings you need included.

Hope this helps,
Panos
--

Bevan
Posts: 18
Joined: Sat Jan 13, 2018 1:37 am

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

Post by Bevan » Wed Feb 27, 2019 12:49 pm

Hi Panos,

Appreciate for the info. I have now edited the info.plist file and added it to the Copy files section and uploaded to App Store for review.

Thanks again.

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

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

Post by LiveCode_Panos » Wed Feb 27, 2019 1:06 pm

Hello Bevan,

You are welcome.

Please let us know how it goes.

Kind regards,
Panos
--

Bevan
Posts: 18
Joined: Sat Jan 13, 2018 1:37 am

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

Post by Bevan » Thu Feb 28, 2019 7:12 am

Thanks Panos!

All good now, the app has been accepted by Apple.

Thanks again.

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

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

Post by LiveCode_Panos » Thu Feb 28, 2019 8:28 am

Nice!

Thank you for the follow up Bevan.

I'll file a bug report so as these entries to be included in the plist only if mergHK is included.

Kind regards,
Panos
--

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

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

Post by LiveCode_Panos » Thu Feb 28, 2019 8:37 am


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

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

Post by Jim Mac » Thu Feb 28, 2019 3:37 pm

Thanks Panos. Good catch and work around description.

I hope this fix gets included fast. I hit the same thing but didn’t think to check in here. I could have been the first to report the issue!

Apple is scheduling a session with me to discuss but if the plist fix works, I’ll cancel. Now that I know why the rejection is happening, I’ll try the work around but having to manually update versions, etc is a real pain in the workflow. I can’t imagine how this issue would be recieved by a new user.

Jim

DR White
Posts: 686
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

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

Post by DR White » Sat Mar 02, 2019 8:40 pm

Thanks Panos.

Your work-around got my ios app changed from "Rejected" to "Ready For Sale".

David

chrissi_barton
Posts: 13
Joined: Mon Apr 25, 2016 5:40 pm

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

Post by chrissi_barton » Fri Mar 08, 2019 2:08 pm

Hello, Chrissi here.

I am having the same problem, however when I open my pList I do not see any reference to healthKit, in fact it is a very simple file which only include the bundle-identifier, bundle-version, kind & title.

Am I looking at the wrong pList?

Klaus
Posts: 13824
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

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

Post by Klaus » Fri Mar 08, 2019 2:15 pm

Hi Chrissie,

a shot into the dark, but please check your "inclusions" in the "Standalone Alpplication Settings".
Maybe that namely "external" is checked?

The automatism "Search for required inclusions" is not really trustworthy unfortuantely.

Best

Klaus

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 818
Joined: Fri Feb 06, 2015 4:03 pm

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

Post by LiveCode_Panos » Fri Mar 08, 2019 2:52 pm

Hello all,

@chrissie
You have to modify the "Info.plist" file that is created when you build the standalone:

<standalone_folder>/<standalone_name>.app/Contents/Info.plist

Kind regards,
Panos
--

Post Reply

Return to “iOS Deployment”