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

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

学习是最好的投资!

Antworte allen(1)
迷茫

首先,你有没有安装cocoapods,如果已经安装了的话,你可以重新添加PATH
找到你的安装目录

find / -name cocoapods 

将bin目录下面的pod可执行文件

在~/.bash_profile中添加PATH,具体做法可以去搜一下。
然后你再走一下pod --version,看看是否成功。

如果你没有安装的话,去重装一下吧。

sudo gem install cocoapods
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!