1、添加Podfile文件
2祷嘶、在Podfile的最頂部添加如下描述
source 'https://gitee.com/xxx/LGSpecs.git'#私有索引庫的地址
source 'https://github.com/CocoaPods/Specs.git'#為了保證公有庫的正常使用
3足画、添加使用組件LGBase
source 'https://gitee.com/csii993/mySpecs.git'
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
target 'SpecsDemo' do
pod 'LGBase'
pod 'AFNetworking'
end
4绳姨、安裝組件
pod install