Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios8 无法在iPhone上运行示例heathkit项目FitStoreandRetrieveHealthKitData_Ios8_Xcode6_Healthkit - Fatal编程技术网

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

Ios8 无法在iPhone上运行示例heathkit项目FitStoreandRetrieveHealthKitData,ios8,xcode6,healthkit,Ios8,Xcode6,Healthkit,我已经从苹果开发者网站下载了示例健康套件应用程序(FitStoreandRetrieveHealthKitData)。尝试在我的iPhone上使用Xcode6测试版运行它。 但无法在设备上运行应用程序,并获取错误信息 dyld: Symbol not found: _HKQuantityTypeIdentifierDietaryCalories Referenced from: /private/var/mobile/Containers/Bundle/Application/95F193C

我已经从苹果开发者网站下载了示例健康套件应用程序(FitStoreandRetrieveHealthKitData)。尝试在我的iPhone上使用Xcode6测试版运行它。 但无法在设备上运行应用程序,并获取错误信息

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

有人能解决这个问题吗?

HKQuantityTypeIdentifierDietaryCarries被重命名为HKQuantityTypeIdentifierDietaryEnergyConsumed。确保您正在使用与您在iPhone上安装的iOS 8版本相对应的iOS 8 SDK版本构建项目