无法将cocoapods 0.39更新到Xcode 8.2.1中的最新版本?

时间:2017-01-27 09:23:49

标签: xcode cocoapods

a0007988:multipurposenavigation-showcase-ios amospune$ pod install
[!] Unable to load a specification for the plugin `/Library/Ruby/Gems/2.0.0/gems/cocoapods-deintegrate-1.0.1`
Cloning spec repo `allianz-ghe-onemobile-library-podspecs-ios` from `https://api-dev.allianz.de/ghe/onemobile-library/podspecs-ios.git`
[!] Unable to add a source with url `https://api-dev.allianz.de/ghe/onemobile-library/podspecs-ios.git` named `allianz-ghe-onemobile-library-podspecs-ios`.
You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`.

这是我在尝试安装pod时遇到的错误。我的.xcworkspace项目存在于目录

  

“/用户/ AmosPune /桌面/ IOS”

。任何帮助,将不胜感激。此外,当我使用命令sudo gem install pod时,它会给我这个错误:

a0007988:multipurposenavigation-showcase-ios amospune$ sudo gem install cocoapods
Password:
ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted - /usr/bin/pod

1 个答案:

答案 0 :(得分:1)

当您更新系统ruby安装的rubygems gem时会发生这种情况,但这可以通过将-n / usr / local / bin传递给install命令来解决,以便在那里安装pod可执行文件。这里的问题是系统附带的默认gem有一个自定义的二进制目录,但是你安装的任何更新的版本(例如通过gem update --system)都没有。

了解更多信息:help link