我正在尝试将PushWoosh插件实现到我的Cordova项目中。并且我无法安装插件,因此我可以制作一个精简版
在Xcode 5.1.1上运行Cordova 3.7.0 PushWoosh版本3.3.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)
插件是否有效???? os是xcode ......
请帮忙。
亲切的问候 /的Mikael