cd 到项目工程目录下,执行
pod install
如出现
-bash: /usr/local/bin/pod:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad
interpreter: No such file or directory
查看:
pod --version
1、更新
sudo gem update --system
2、查看gem源是否是最新的:
gem sources -l
3、升级cocoapods:
sudo gem install -n /usr/local/bin cocoapods --pre
4、查看升级后的cocoapods版本:
pod --version
然后在执行
pod install