HealthKit icon indicating copy to clipboard operation
HealthKit copied to clipboard

Real iOS device issue

Open itconsulting-live opened this issue 8 years ago • 6 comments

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)

itconsulting-live avatar Nov 17 '16 16:11 itconsulting-live

Update Xcode please

EddyVerbruggen avatar Nov 17 '16 16:11 EddyVerbruggen

Thanks, but is updated to the latest version (8.1, updated November 11).

itconsulting-live avatar Nov 18 '16 13:11 itconsulting-live

Which iOS version(s) are you seeing this on?

EddyVerbruggen avatar Nov 18 '16 13:11 EddyVerbruggen

Phone: IPhone 5s, iOS 10.1.1 Xcode: 8.1, OS X El Capitan, 10.11.6

itconsulting-live avatar Nov 18 '16 14:11 itconsulting-live

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?

EddyVerbruggen avatar Nov 18 '16 14:11 EddyVerbruggen

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.

itconsulting-live avatar Nov 18 '16 18:11 itconsulting-live