我已经下载了示例Health应用程序(FitStoreandRetrieveHealthKitData)from苹果开发者网站。尝试在我的iPhone上运行Xcode 6测试版。但未能在设备上运行应用程序并获得错误
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有人能解决这个问题吗?
发布于 2014-09-08 16:21:31
将HKQuantityTypeIdentifierDietaryEnergyConsumed.重命名为HKQuantityTypeIdentifierDietaryCalories确保使用iOS 8 SDK的版本构建项目,该版本与您在iPhone上安装的iOS 8版本相对应。
https://stackoverflow.com/questions/25616612
复制相似问题