1. 安裝cocoapods-repo-svn 插件
sudo gem install cocoapods-repo-svn
2. 代碼提交到svn服務(wù)器
目錄.png
3.添加遠(yuǎn)程索引庫(kù)到本地
pod repo-svn add ZYCategories https://10.100.201.66/svn/MBS_PRO/development/branches/Plugin_DEV/ZYModular/ZYCategories/ZYCategories/
4.創(chuàng)建本地私有模版庫(kù)
pod lib create ZYCategories
5. 編寫podsepc文件
spec.jpg
6.遠(yuǎn)程打標(biāo)簽tag
tag.png
7.提交spec至私有索引庫(kù)
pod repo-svn push ZYCategories ZYCategories.podspec
8.使用 profile
podfile.png
9.注意
cocoapods 官方source是隱式的需要的侣颂,一旦你指定了其他source 你就需要也把官方的指定
:sources 中可以添加多個(gè)路徑
podfile.png