cocoapods 远程私有仓库

2017-06-01  本文已影响0人  金克拉拉拉拉

在某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

上一篇下一篇

猜你喜欢

热点阅读