Including CoreML in a Swift project for a watch app fails to compile.
Unsure if this is a Swift compilation issue or related to the frameworks or Xcode.
Any assistance would be great.
Steps to Repro:
- Create a new Watch App project using Xcode 12 beta 1 (12A6159)
- In the
let _ = MLPredictionOptions()in
Getting this error:
Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_MLPredictionOptions", referenced from: objc-class-ref in ExtensionDelegate.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
When trying to add CoreML directly to the project Frameworks I get this error:
ld: framework not found CoreML clang: error: linker command failed with exit code 1 (use -v to see invocation)