我正在尝试在我的 Cordova 项目中实现 PushWoosh 插件。我无法安装插件,所以我可以制作一个漫画
在 Xcode 5.1.1 PushWoosh 版本 3.3.0 上运行 Cordova 3.7.0
我创建项目。添加其他插件并构建到 ios。一切都好。Cordova 在模拟器中运行。
然后我添加 pushwoosh 插件:cordova 插件添加https://github.com/Pushwoosh/pushwoosh-phonegap-3.0-plugin.git
安装正常。
构建错误
error : Failed to load dependencies output contents from ``/Users/myuser/Desktop/Projekter/StaffCommunicator/platforms/ios/build/staffcommunicator.build/Debug-iphonesimulator/staffcommunicator.build/Objects-normal/i386/PushNotification.d''.
Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “PushNotification.d” couldn’t be opened because there is no such file." UserInfo=0x7fa1a1533730
{NSFilePath=/Users/myuser/Desktop/Projekter/StaffCommunicator/platforms/ios/build/staffcommunicator.build/Debug-iphonesimulator/staffcommunicator.build/Objects-normal/i386/PushNotification.d, NSUnderlyingError=0x7fa1a1527490 "The operation couldn’t be completed. No such file or directory"}. User info: {
NSFilePath = "/Users/myuser/Desktop/Projekter/StaffCommunicator/platforms/ios/build/staffcommunicator.build/Debug-iphonesimulator/staffcommunicator.build/Objects-normal/i386/PushNotification.d";
NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"The operation couldn\U2019t be completed. No such file or directory\"";}
插件似乎没有复制到插件文件夹中。我试图手动将插件文件复制到目录中。
现在我收到此错误:{name = (null), num = 7} 请在http://bugreport.apple.com提交错误,并附上此警告消息以及您可以提供的任何有用信息。
** BUILD FAILED **
The following build commands failed:
CompileC build/staffcommunicator.build/Debug-iphonesimulator/staffcommunicator.build/Objects-normal/i386/PushNotification.o staffcommunicator/Plugins/com.pushwoosh.plugins.pushwoosh/ios/PushNotification.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Error: /Users/myuser/desktop/projekter/staffcommunicator/platforms/ios/cordova/build: Command failed with exit code 65
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)
如果我尝试在 xcode 中运行它仍然无法编译,我会收到此错误...
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_PushNotificationManager", referenced from:
objc-class-ref in PushNotification.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
插件好用吗???操作系统是xcode吗...
请帮忙。
亲切的问候/米凯尔