Cannot install app using HealthKit on iPad from TestFlight

iPadOS 17 brings HealthKit to the iPad. So I've updated my HealthKit-using app to also run on iPadOS. I can debug it from Xcode on iPad simulators and my iPad, but when I upload a build to AppStoreConnect from Xcode and try to install it on my iPad from TestFlight, the install-button is missing and instead there is a label saying "incompatible hardware".

The app has no other required device capabilities besides healthkit. It was also updated to at least require iOS/iPadOS 17. I can install it on my iPhone but not on the iPad.

I also noticed that in this list https://developer.apple.com/support/required-device-capabilities/#ipad-devices no iPad model has the healthkit device capability. Why?

Is there some way to find out why exactly TestFlight thinks the iPad is incompatible hardware?

Thanks in advance to anyone who can enlighten me here.

Accepted Reply

You need to remove the healthkit capability from UIRequiredDeviceCapabilties. That key is used to restrict installs to iPhone only. If you're making a universal app, you no longer need it. See the updated documentation of healthkit at https://developer.apple.com/documentation/bundleresources/information_property_list/uirequireddevicecapabilities/

Replies

You need to remove the healthkit capability from UIRequiredDeviceCapabilties. That key is used to restrict installs to iPhone only. If you're making a universal app, you no longer need it. See the updated documentation of healthkit at https://developer.apple.com/documentation/bundleresources/information_property_list/uirequireddevicecapabilities/

Thanks. That fixed it.