objective-c - github同步到仓库的源码怎么安装pod
PHPz
PHPz 2017-05-02 09:25:18
0
1
443

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

PHPz
PHPz

学习是最好的投资!

reply all(1)
迷茫

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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template