首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在FitStoreandRetrieveHealthKitData上运行示例heathkit项目iPhone

无法在FitStoreandRetrieveHealthKitData上运行示例heathkit项目iPhone
EN

Stack Overflow用户
提问于 2014-09-02 05:44:09
回答 1查看 551关注 0票数 2

我已经下载了示例Health应用程序(FitStoreandRetrieveHealthKitData)from苹果开发者网站。尝试在我的iPhone上运行Xcode 6测试版。但未能在设备上运行应用程序并获得错误

代码语言:javascript
复制
dyld: Symbol not found: _HKQuantityTypeIdentifierDietaryCalories
  Referenced from: /private/var/mobile/Containers/Bundle/Application/95F193C0-52CE-47E0-92C4-0BF436AEB3AE/Fit.app/Fit
  Expected in: /System/Library/Frameworks/HealthKit.framework/HealthKit
 in /private/var/mobile/Containers/Bundle/Application/95F193C0-52CE-47E0-92C4-0BF436AEB3AE/Fit.app/Fit

有人能解决这个问题吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-09-08 16:21:31

将HKQuantityTypeIdentifierDietaryEnergyConsumed.重命名为HKQuantityTypeIdentifierDietaryCalories确保使用iOS 8 SDK的版本构建项目,该版本与您在iPhone上安装的iOS 8版本相对应。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25616612

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档