前言:
因为公司项目使用的Swift,Carthage管理第三方库,用了这么久还是觉得CocoaPods更好用,一直打算换,但是怕影响项目一直耽搁,今天先试下,原本想着太多报错就算了😆其实还是简单的哈~
1、pod init
2、修改Podfile文件:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'XX' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for XX
pod 'Bugly'
pod 'SQLite.swift'
pod 'SnapKit'
pod 'GzipSwift'
pod 'Alamofire'
pod 'HandyJSON', '~> 5.0.0-beta.1'
pod 'MBProgressHUD'
pod 'IQKeyboardManagerSwift'
pod 'Kingfisher'
pod 'FSCalendar'
pod 'EFQRCode', '~> 5.0.0'
pod 'SwiftyJSON'
pod 'MJRefresh'
end
3、pod install
4、修改如下:
5、修改如下:
具体的CocoaPods环境的配置就不说了,百度上很多哈~~