打开终端,把项目拖进终端 cd xxxx
执行
pod init
操作,会生成一个Podfile文件
将Podfile文件用Xcode打开
在target里面加入你需要导入的三方,例如 pod 'Alamofire'
target '项目名字' do
pod 'Alamofire'
end
然后,在命令行里面执行
pod install --no-repo-update
操作,即可将三方导入本项目
打开终端,把项目拖进终端 cd xxxx
执行
pod init
将Podfile文件用Xcode打开
在target里面加入你需要导入的三方,例如 pod 'Alamofire'
target '项目名字' do
pod 'Alamofire'
end
pod install --no-repo-update