cordova-plugin-apple-watch icon indicating copy to clipboard operation
cordova-plugin-apple-watch copied to clipboard

Undefined symbols for architecture arm64: "_OBJC_CLASS_$_MMWormhole", referenced from: objc-class-ref in InterfaceController.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Open mouryaamit opened this issue 9 years ago • 1 comments

Hi, I have installed plugin using cordova plugin add cordova-plugin-apple-watch

I did not got any _libmmwormhole.a_ file with plugin installation

I had added reference of MMWormhole.h in _InterfaceController.m_.

I am getting following error

Undefined symbols for architecture arm64: "OBJC_CLASS$_MMWormhole", referenced from: objc-class-ref in InterfaceController.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

mouryaamit avatar Feb 08 '16 20:02 mouryaamit

I had this same issue. It seems that while the plugin successfully adds the proper classes to the iOS app's "Compile Sources" in the "Build Phases" section, it does not to your watch extension...

It was a simple fix, I simply opened the Build Phases on my watch extension (note: this is the extension not the watch app) and manually added all wormhole classes (essentailly Plugins/MMWormhole*) and everything went great from there.

See this link for more details: http://stackoverflow.com/questions/6984368/undefined-symbols-for-architecture-i386-objc-class-skpsmtpmessage-referenc#answer-9438843

JasonTolliver avatar Dec 01 '16 01:12 JasonTolliver