2014-09-02 12 views
2

사과 개발자 사이트에서 샘플 건강 키트 앱 (FitStoreandRetrieveHealthKitData)을 다운로드했습니다. Xcode 6 beta로 iPhone을 실행 해 봅니다. 는 그러나 장치에 응용 프로그램 및 점점 오류샘플 heathkit 프로젝트를 실행할 수 없습니다. iPhone에서 FitStoreandRetrieveHealthKitData를

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 

을 실행하지 못했습니다 수 중 하나가 이것에 대한 솔루션을?

답변

3

HKQuantityTypeIdentifierDietaryCalories의 이름이 HKQuantityTypeIdentifierDietaryEnergyConsumed로 바뀌 었습니다. iPhone에 설치 한 iOS 8 버전에 해당하는 iOS 8 SDK 버전으로 프로젝트를 빌드하고 있는지 확인하십시오.

관련 문제