美文网首页
#Cocoapods 私有库 快捷使用

#Cocoapods 私有库 快捷使用

作者: 赶往15号线 | 来源:发表于2018-08-21 16:10 被阅读28次

1 创建私有库 的管理仓库Specs

pod repo add Specs GitURL

Specs: 本地管理仓库名称
GitURL: 仓库的远程地址

2 创建私有库管理

Pod::Spec.new do |s|
s.name = 'WOWPickerView' //名字
s.version = '1.0.0' //版本号
s.summary = 'one fang' //描述

s.homepage = 'http://gitlab.yingupuhui.com/iOS-Component/WOWPickerView' //路径
s.license = 'MIT' //
s.author = { 'FangZhongJie' => 'fangzhongjie@yingu.com' }
s.platform = :ios,

屏幕快照 2018-08-21 下午4.09.43.png
'8.0'
s.source = { :git => 'http://gitlab.yingupuhui.com/iOS-Component/WOWPickerView.git', :tag => s.version}
s.source_files = 'WOWPickerView/*/.{h,m}' //文件路径
s.dependency 'Masonry' //依赖库
s.dependency 'YYKit' //依赖库
end

3,创建后.本地校验 pod lib lint

远程校验 pod spec lint
校验通过, 把私有库上传到远程,打tag

4, 然后,把私有库版本 上传到管理库

pod repo push Specs XXX.podspec #前面是本地Repo名字 后面是podspec名字

**3,4 命令忽略警告 后缀加 --allow-warnings

podfile中引用:

pod 'XXXX',:git => 'http://XX/XX.git', :tag => '1.1.0'

相关文章

  • 使用Cocoapods创建私有podspec

    参考文章: CocoaPods私有库配置笔记 使用Cocoapods创建私有podspec cocoapods应用...

  • #Cocoapods 私有库 快捷使用

    1 创建私有库 的管理仓库Specs pod repo add Specs GitURL Specs: 本地管理仓...

  • iOS 组件化-本地私有库

    CocoaPods本地私有库 组件化-使用CocoaPods管理的本地私有库,可以分为3种 本地私有引用 本地工程...

  • CocoaPods远程私有库随笔

    需求: 使用Cocoapods集成自己在服务器的私有代码 剖析: 想使用Cocoapods远程集成自己的私有库, ...

  • 【cocoapods】基础 私有库 : 创建、使用、更新、集成第

    cocoapods 私有库 : 创建、使用、更新 ; 技术有先后,一起学习 ! 一、 制作私有库 创建自己的私有库...

  • iOS组件化-CocoaPods

    组件化练手,首先先使用CocoaPods创建本地私有库和远程私有库。CocoaPods大家都用过,那就废话不多说了...

  • CocoaPods使用总结

    CocoaPods 公共库的创建CocoaPods 本地私有库的创建(模板创建方式)CocoaPods 本地私有库...

  • 创建spec库

    一、创建私有specs库(cocoapods版本1.9.1) cocoapods的specs的库使用以下命令可以查...

  • pod私有库

    接着上两篇文章CocoaPods公有库和CocoaPods本地私有库,这篇就来讲解下CocoaPods远程私有库,...

  • The 'Pods-App' target ha

    原文CocoaPods建立自己的Podspec(三)Cocoapods使用私有库中遇到的坑 The 'Pods-A...

网友评论

      本文标题:#Cocoapods 私有库 快捷使用

      本文链接:https://www.haomeiwen.com/subject/cysdiftx.html