$cd /Users/luffy/Desktop/IOS学习资料/MyFirstSwift
$ touch Podfile
$ open Podfile
Podfile添加如下代码
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!
target 'MyFirstSwift' do
pod 'Alamofire', '~> 3.4'
end
$ pod install
[luffydeMacBook-Pro:MyFirstSwift luffy$pod install
Analyzing dependencies
Downloading dependencies
Installing Alamofire (3.4.0)
Generating Pods project
Integrating client project
[!] Please close any current Xcode sessions and use ` MyFirstSwift.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 1 total
pod installed.
luffydeMacBook-Pro:MyFirstSwift luffy$
网友评论