
sudo gem update --systemneed Over the wallgem -v2.6.7 or latergem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/gem sources -lmake sure onlygems.ruby-china.org
Install
sudo gem install -n /usr/local/bin cocoapodspod setupDO NOT break your network, then wait…
Use
- Create your project
cd 'your project home'touch Podfilevim Podfilepod installthen wait…open yourProject.xcworkspace
P.S.
-
Edit
Podfilecontent1234567platform :ios, '8.0'target 'yourProjectTarget'pod 'JSONKit'pod 'Reachability', '~> 3.0.0'end -
Get info about cocoaPods index
12cd ~/.cocoapodsdu -sh *maybe over 1.0G
-
When you modify your Podfile, you need
pod update - Reference




近期评论