ios - 安装 cordova push 插件后 Ionic build ios 失败

标签 ios cordova ionic-framework

安装 phonegap 插件后,我的 ionic build ios 失败了:

it gives me this error

The following build commands failed:
    CompileC build/example.build/Debug-iphonesimulator/example.build/Objects-normal/i386/PushPlugin.o example/Plugins/com.phonegap.plugins.PushPlugin/PushPlugin.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
ERROR building one of the platforms: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/wangeltamang/Documents/est_ionic/platforms/ios/cordova/build-debug.xcconfig,-project,example.xcodeproj,ARCHS=i386,-target,example,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/wangeltamang/Documents/est_ionic/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/wangeltamang/Documents/est_ionic/platforms/ios/build/sharedpch
You may not have the required environment or OS to build this project

缺少什么所需的环境?我有最新的 xcode 更新和 cli 版本

Cordova CLI: 6.0.0
Gulp version:  CLI version 3.9.1
Gulp local:   Local version 3.9.1
Ionic Version: 1.2.4
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
ios-deploy version: Not installed
ios-sim version: 5.0.6 
OS: Mac OS X El Capitan
Node Version: v5.9.0
Xcode version: Xcode 7.2.1 Build version 7C1002 

最佳答案

你的 cordova 平台输出是什么?

$ cordova 平台 安装平台:ios 3.9.2 可用平台:amazon-fireos、android、blackberry10、浏览器、firefoxos、osx、webos

使用 ios 4.0.0 我有同样的错误。 我更改了平台版本并且它有效。

$cordova 平台删除 ios $cordova 平台添加 ios@3.9.2

关于ios - 安装 cordova push 插件后 Ionic build ios 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36458701/

相关文章:

javascript - Ionic AngularJS 所有 ng-click 事件都触发两次?

2 个不同的 android 版本中的 CSS 问题。(4.1.2 和 4.4.2)

jquery - 是否值得将现有的 iOS 应用程序从 Phonegap 1.2 升级到 1.9?

Cordova 插件 InAppBrowser 无法第二次打开

ios - 使用 Unity 运行时无法在 iPhone 上使用相机

ios - "Default"在 UITabBarController 中查看

javascript - 如何使用 Cordova FileTransfer 将文件上传到 Amazon S3?

angularjs - 如何使用 css 在 li 之间留出边距?

ios - 如何在 UIPageViewController iOS Swift 3 中更改页面后进行小摇晃

ios - Swift + GIDSignIn - hasAuthInKeyChain 返回 true 但 currentUser 在调用 signInSilently 后仍然为 nil