我在构建时遇到了以下错误
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)我已经使用cordova plugin add cordova- plugin -apple-watch安装了插件
我没有得到任何libmmwormhole.a插件安装文件
发布于 2016-02-09 21:43:20
在您的文件InterfaceController中,您使用的类的名称包含“Wormhole”。它没有在任何地方定义,所以链接器不能把它放在一起。看起来像是缺少了一个库。
发布于 2021-08-31 08:56:55
尝试在项目库或虫洞中查找,如果它在项目中,并且在项目文件中存在,则转到项目->干净构建文件夹,如果不在,请删除User/Libraries/Developer/Xcode/Derived Data文件夹--您需要在项目中使用它添加库。
https://stackoverflow.com/questions/35278390
复制相似问题