安装pushwoosh通知插件后,ios的Cordova构建失败



我们已经使用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版本,node 4.4.7版本。请帮助解决此问题并使我们的项目取得成功。

You may not have the required environment or OS to build this project

你使用哪种环境?

最新更新