将自定义Cordova插件添加到离子项目时编译错误

时间:2016-12-02 20:15:54

标签: cordova ionic-framework cordova-plugins

我有一个插件,我将用于将离子应用程序连接到蓝牙Zebra打印机。我已经正确地构建了plugin.xml,.h和.m文件(从我可以看出,第一个插件)。当我从git repo添加插件时,一切都添加OK,但是当我运行

ionic build ios

它会返回以下错误。

** BUILD FAILED **


The following build commands failed:
CompileC build/Mobile\ Concierge.build/Debug-iphonesimulator/Mobile\ Concierge.build/Objects-normal/i386/ZebraPrinter.o Mobile\ Concierge/Plugins/com.bgoforth.cordova.plugin.zebra-printer/ZebraPrinter.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

然后再向下它有这个错误

Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/maxorpharmacy/Documents/Development_Projects/MobileConciergeApp/11212016/MobileConciergeApp/platforms/ios/cordova/build-debug.xcconfig,-project,Mobile Concierge.xcodeproj,ARCHS=i386,-target,Mobile Concierge,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/maxorpharmacy/Documents/Development_Projects/MobileConciergeApp/11212016/MobileConciergeApp/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/maxorpharmacy/Documents/Development_Projects/MobileConciergeApp/11212016/MobileConciergeApp/platforms/ios/build/sharedpch

我不知所措,因为我之前从未开发和部署过cordova插件,但我遵循了文档,但可能(也可能确实)错过了一些东西。

有没有人经历过这个?我的回购是https://github.com/billycomic/CordovaZebraPrinter

非常感谢任何帮助。

0 个答案:

没有答案