【问题标题】:ionic 3 - cannot install onesignal plugin for ios using latest xcodeionic 3 - 无法使用最新的 xcode 为 ios 安装 onesignal 插件
【发布时间】:2018-01-13 03:12:42
【问题描述】:

我无法为 onesignal 插件创建添加 ios 平台。用android构建它的罚款。

我这样做了:

$ ionic cordova platform add ios

以下错误失败。

apple-ios version check failed ("/Users/megasap/Documents/project/railerdotcom/railercom_parent/platforms/ios/cordova/apple_ios_version"), continuing anyways.

Failed to install 'onesignal-cordova-plugin': undefined

Failed to restore plugin "onesignal-cordova-plugin" from config.xml. You might need to try adding it again. Error: /Users/megasap/.rbenv/shims/pod: line 21: /usr/local/Cellar/rbenv/1.0.0/libexec/rbenv: No such file or directory

--save flag or autosave detected

Saving ios@~4.5.4 into config.xml file ...
[ERROR] Exception: 

此处完全执行和错误: https://gist.github.com/axilaris/a926c54eb515bef5eb2f7019e36aa40f

这曾经可以工作,我只是更新到最新的 xcode 9.2 来编译其他东西。使用最新的xcode有什么问题吗?

【问题讨论】:

  • 看起来你需要更新 cocoapods.. 你能添加 crodova requirements 命令的输出吗?
  • 你是对的。是 sudo gem install cocoapods 成功了
  • 很高兴听到它:) 添加为答案

标签: ios xcode plugins ionic3 onesignal


【解决方案1】:

安装更新cocoapods修复问题

sudo gem install cocoapods pod setup

您可能需要rmadd ios 平台才能使其工作

【讨论】:

  • 我必须添加“pod setup”才能继续安装,尽管我仍然收到失败的版本检查。
  • pod setup 为我修复了它。
【解决方案2】:

真正的问题在这里:

错误:/Users/megasap/.rbenv/shims/pod:第 21 行:/usr/local/Cellar/rbenv/1.0.0/libexec/rbenv:没有这样的文件或目录

只需将 cocoapods 更新/安装到最新版本,因为您的 xcode 也会更新。

sudo gem install cocoapods 

【讨论】:

    猜你喜欢
    • 2019-08-23
    • 1970-01-01
    • 1970-01-01
    • 2018-02-17
    • 2018-06-03
    • 2018-03-02
    • 2020-10-11
    • 2018-04-13
    • 1970-01-01
    相关资源
    最近更新 更多