【问题标题】:Ionic build ios fails after installing cordova push plugin安装cordova push插件后,Ionic build ios失败
【发布时间】:2016-04-06 17:52:28
【问题描述】:

安装 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 

【问题讨论】:

  • 您是否尝试删除平台/添加平台?参考:forum.ionicframework.com/t/…
  • @pyro 是的,我试过了,它正在工作
  • 奇怪的是,我不得不更新 cordova 和 ionic 并重新处理所有内容以构建 ios
  • 我试过了,但它不适合我..:(

标签: ios cordova ionic-framework


【解决方案1】:

cordova 平台的输出是什么?

$ cordova platform Installed platforms: ios 3.9.2 Available platforms: amazon-fireos, android, blackberry10, browser, firefoxos, osx, webos

使用 ios 4.0.0 我遇到了同样的错误。 我更改了平台版本,它可以工作。

$cordova platform remove ios $cordova platform add ios@3.9.2

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-11-25
    • 2018-03-19
    • 2023-03-29
    • 1970-01-01
    • 1970-01-01
    • 2023-03-10
    • 2021-11-02
    • 2018-06-03
    相关资源
    最近更新 更多