cordova-plugin-apple-watch
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)
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)
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