$ sudo gem install cocoapods
$ vi Podfile
platform :ios, '8.0' use_frameworks! target '項目名字' do pod 'AFNetworking', '~> 2.6' pod 'ORStackView', '~> 3.0' pod 'SwiftyJSON', '~> 2.3' end
$ pod install
$ open 項目名字.xcworkspace
$ sudo gem install cocoapods
$ vi Podfile
platform :ios, '8.0' use_frameworks! target '項目名字' do pod 'AFNetworking', '~> 2.6' pod 'ORStackView', '~> 3.0' pod 'SwiftyJSON', '~> 2.3' end
$ pod install
$ open 項目名字.xcworkspace