Search code examples
iosiphoneipadios8healthkit

iOS universal app with healthkit won't run on iPad


I have an universal app and I´ve implemented it to use the healthkit API. It runs great on iPhone but when I try to install it on an actual iPad device (works perfectly in iPad simulator) it wont install.

I am getting the error message: "The Info.plist for application at ... specifies device capability requirements, which are not met by "my ipad"".

I there any way I can distribute an universal app where the healthkit API (framework) only runs on the iPhone?

Heres two screenshots of my project:

This is under "Custom iOS target properties

This is my capabilities tab

Do I really need to make a standalone iPad app?


Solution

  • Update: this answer comes many years ago when HealthKit was first introduced on iOS 8. Now, please follow the official guideline: https://developer.apple.com/documentation/healthkit/samples/accessing_health_records?language=objc

    --- original answer ---

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