简体   繁体   中英

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)

在此处输入图片说明

I just enable automatically manage signing of Xcode and solve my problem. 在此处输入图片说明

Here is my health kit capability

在此处输入图片说明

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

Entitlements confer specific capabilities or security permissions to your iOS or OS X app.

You need to generate a Certificate and a Provisioning Profile to have your entitlement. This you can generate from developer.apple.com but you will need a Membership to do so.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM