在某git代碼托管平臺構建某私有倉庫,用于存放podspec
并 pod repo add 索引庫名稱 遠端索引庫地址
pod repo 查看當前pod環境的索引庫?
將需要pod托管的遠端庫的.podspec文件 ?push 進索引庫中 其自動會推至遠端私有庫
pod repo push 索引庫名稱 xxxx.podspec
驗證完成后,可查看相應遠端私有podspecs 倉庫 是否存在需要添加的xxx.podspec
相應在Podfile中使用該私有庫 需要聲明對應 源地址 具體 pod repo 查看即可?
若需刪除該本地源地址,pod repo remove xxxx 即可
更多操作參考 pod repo --help
platform :ios,'8.0'
use_frameworks!
#私有庫
source'https:foooooooo'
#公有庫
source'https://github.com/CocoaPods/Specs.git'
target'foooooooo'do
pod'KingBaseCategory'
#pod 'MJExtension'
end