Search code examples
ioshealthkit

Adding HealthKit entitlement to your app ID - No device


I just started learning ios development/swift so I apologise in advance if this may sound like a dumb question. I am trying to integrate healthkit in my app by following some tutorials. All of them say to go to xcode capabilities first and enable healthkit. My problem is this doesn't work. I get an error for Add the "HealthKit" entitlement to your app ID - No device. Any tip/idea what I should do?

Also I have a developer account but I haven't purchased any membership (if this has smth to do)

enter image description here


Solution

  • Yes you need to enroll in the developer program.

    If you’re new to development on Apple Platforms, you can get started with our tools and resources for free. If you’re ready to build more advanced capabilities and distribute your apps on the App Store, enroll in the Apple Developer Program. The cost is 99 USD per membership year.

    Enrollment image