具体的创建过程懒得写,百度一搜就有,转一篇写的比较详细的:
iOS开发: 配置CocoaPods远程私有仓库 作者:冰凌天
最终使用的时候注意: 如果没有提交到官方的pod库,记得在Podfile中注明source
# Uncomment this line to define a global platform for your project
platform :ios, '10.0'
#私有
source 'http://xxxx.git'
#官方
source 'https://github.com/CocoaPods/Specs.git'
#################
#########
target 'xxx' do
use_frameworks!
pod "xxxx"
end
网友评论