HealthKit
HealthKit copied to clipboard
Real iOS device issue
Building/Deploying for the actual iOS device causes a linker error: Undefined symbols for architecture armv7: "_HKCharacteristicTypeIdentifierFitzpatrickSkinType", referenced from: -[HealthKit readFitzpatrickSkinType:] in HealthKit-18B10050B69093A6.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Update Xcode please
Thanks, but is updated to the latest version (8.1, updated November 11).
Which iOS version(s) are you seeing this on?
Phone: IPhone 5s, iOS 10.1.1 Xcode: 8.1, OS X El Capitan, 10.11.6
Strange.. this constant has been added in iOS 9 so your environment looks good. There's no older Xcode version on the machine you're building on? And is the HealthKit framework indeed included in the project?
No, there is no older Xcode and the framework is included:
Link Binary with Libraries:
- HealKit.framework Required
Compile Sources:
* HealKit.framework
Building/deploying for emulator works fine, no linker errors.