Mac重装系统搭建iOS开发环境
安装Xcode
fan qiang
然后打开终端依次输入以下命令
ppdeMacBook-Pro:~ pp$ history
1 defaults write com.apple.finder AppleShowAllFiles TRUE
2 killall Finder
3 gem -v
4 sudo gem update --system
5 gem -v
6 gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/
7 gem sources -l
8 sudo gem install -n /usr/local/bin cocoapods
9 pod setup
10 cd /Users/pp/Desktop/test
11 pod init
12 pod install
1 defaults write com.apple.finder AppleShowAllFiles TRUE
2 killall Finder
3 gem -v
4 sudo gem update --system
5 gem -v
6 gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/
7 gem sources -l
8 sudo gem install -n /usr/local/bin cocoapods
9 pod setup
10 cd /Users/pp/Desktop/test
11 pod init
12 pod install