【问题标题】:Cordova build failed for ios after installing pushwoosh notifications plugin安装 pushwoosh 通知插件后,iOS 的 Cordova 构建失败
【发布时间】:2023-03-29 19:10:01
【问题描述】:

我们已经使用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版。请帮助如何解决这个问题并成功构建我们的项目。

【问题讨论】:

  • 您使用哪个 Xcode 版本构建?
  • 我们使用的是 Xcode 8.0

标签: ios cordova pushwoosh


【解决方案1】:
You may not have the required environment or OS to build this project

你使用什么环境?

【讨论】:

    猜你喜欢
    • 2023-03-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多