iOS universal app with healthkit won't run on iPad

you can remove healthkit from Required device capabilities in your project's info.plist


Only by removing healthkit from Required device capabilities from info.plist doesn't work.

If you do only above step then apple reject the app with below message.

Your app uses the HealthKit API but does not indicate integration with the Health app in your app description.

You need to do below steps to run your app in both iPhone & iPad.

1. Remove healthkit from Required device capabilities from info.plist

enter image description here

2. You need to set HealthKit.framework as Optional from Linked Frameworks and Libraries

enter image description here