我们使用cordova完成了ios应用程序。我们使用pushwoosh插件发送推送通知。最近我们更新了pushwoosh插件从版本3.6.5到6.2.2(https://github.com/Pushwoosh/pushwoosh-phonegap-plugin)。安装新版本后,我们无法构建项目。
cordova plugin add pushwoosh-cordova-plugin@6.2.2
安装后
cordova build ios
我们收到以下错误
The following build commands failed:
CpResource www/plugins/com.pushwoosh.plugins.pushwoosh/www/PushNotification.js build/emulator/ITCPapyra.app/PushNotification.js
(1 failure)
Error code 65 for command: xcodebuild with args: -xcconfig,/Users/apple/ITCPapyra/platforms/ios/cordova/build-debug.xcconfig,-project,ITCPapyra.xcodeproj,ARCHS=i386,-target,ITCPapyra,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/apple/ITCPapyra/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/apple/ITCPapyra/platforms/ios/build/sharedpch
ERROR building one of the platforms: Error: /Users/apple/ITCPapyra/platforms/ios/cordova/build: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error: /Users/apple/ITCPapyra/platforms/ios/cordova/build: Command failed with exit code 2
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:139:23)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:827:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
我们正在使用cordova版本5.2.0,节点版本4.4.7。请帮助解决此问题并帮助我们建立项目成功。
答案 0 :(得分:0)
FirstPageViewModel
您使用的是哪种环境?