search

Home  >  Q&A  >  body text

objective-c - github同步到仓库的源码怎么安装pod

cd 到 podfile 文件夹下执行:

$ pod install

命令返回:

-bash: pod: command not found

不能安装第三方

我想更新pod
sudo gem update --system
但是没有权限
Operation not permitted - /usr/bin/update_rubygems

OSX 10.11 路径问题,解决中

已解决(Podfile格式,pod官网https://cocoapods.org/)
platform :ios, '8.0'

use_frameworks!个别需要用到它,比如reactiveCocoa

def pods
pod 'AFNetworking', '~> 2.6'
pod 'ORStackView', '~> 3.0'
pod 'SwiftyJSON', '~> 2.3'
end
target 'MyApp' do
pods
end

PHPzPHPz2757 days ago445

reply all(1)I'll reply

  • 迷茫

    迷茫2017-05-02 09:27:18

    First of all, have you installed cocoapods? If it is already installed, you can re-add PATH
    to find your installation directory

    find / -name cocoapods 

    Change the pod executable file under the bin directory

    Add PATH in ~/.bash_profile. You can search for the specific method.
    Then you walk againpod --version and see if it’s successful.

    If you haven’t installed it, go ahead and reinstall it.

    sudo gem install cocoapods

    reply
    0
  • Cancelreply