我想在没有 iPhone 开发者帐户的情况下在 iOS 模拟器中测试 HealthKit 应用程序。我添加了一个启用了 com.apple.developer.healthkit 功能的授权文件,当我构建应用程序时,它似乎将文件包含在包中,但是当我尝试访问 HealthKit API 时,模拟器会抛出此错误:
Error Domain=com.apple.healthkit
Code=4 "Missing com.apple.developer.healthkit entitlement."
UserInfo=0x7fc939f091c0
{NSLocalizedDescription=Missing com.apple.developer.healthkit entitlement.}
在没有开发人员帐户的情况下,是否可以在 iOS 模拟器中尝试 HealthKit?