我正在尝试为Zebra SDK(https://www.zebra.com/us/en/products/software/barcode-printers/zebralink/zebralink-multiplatform-sdk.html)生成Cordova(Phonegap)插件,以便通过蓝牙进行打印。
我创建了一个新的Cordova项目,并引用了SDK。在构建时我收到了这些错误:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_EAAccessoryManager", referenced from:
objc-class-ref in CordovaZebraPrint.o
"_OBJC_CLASS_$_MfiBtPrinterConnection", referenced from:
objc-class-ref in CordovaZebraPrint.o
ld: symbol(s) not found for architecture x86_64
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_EAAccessoryManager", referenced from:
objc-class-ref in CordovaZebraPrint.o
"_OBJC_CLASS_$_MfiBtPrinterConnection", referenced from:
objc-class-ref in CordovaZebraPrint.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_EAAccessoryManager", referenced from:
objc-class-ref in CordovaZebraPrint.o
"_OBJC_CLASS_$_MfiBtPrinterConnection", referenced from:
objc-class-ref in CordovaZebraPrint.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我是否需要使用特定版本的SDK,或者这是我可以在我的XCode项目中修复的内容?