一、克隆远端库代码到本地选择master分支

1、克隆

2、代码会显示出你所有版本的tag

二、可以在Example目录下验证代码的正确行;

cd 到库的文件夹然后

  pod install

  command + r //验证代码是否可用

三、按照正常的添加代码和提交新的代码到master

此处是souretree的简单应用不说明!

四、在最新的节点打tag,记住勾选推送到远程;

五、然后终端cd到项目的根目录,执行本地和远端校验!

 pod spec lint --private

输出没有报错为正常

 -> MobileKit (0.5.)
- WARN | url: The URL (https://gitee.com/peter_zhang/MobileKit) is not reachable. Analyzed podspec. MobileKit.podspec passed validation.

如果有下边错误

 -> MobileKit (0.5.)
- WARN | url: The URL (https://gitee.com/peter_zhang/MobileKit) is not reachable.
- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
- ERROR | xcodebuild: /Users/zhangpeng/Library/Developer/Xcode/DerivedData/App-gasjivbufxjzbfgftsidmwdvawdj/Build/Products/Release-iphonesimulator/MobileKit/MobileKit.framework/Headers/DESUtils.h::: error: include of non-modular header inside framework module 'MobileKit.DESUtils': '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/CommonCrypto/CommonCrypto.h' [-Werror,-Wnon-modular-include-in-framework-module]
- ERROR | xcodebuild: /Users/zhangpeng/Library/Developer/Xcode/DerivedData/App-gasjivbufxjzbfgftsidmwdvawdj/Build/Products/Release-iphonesimulator/MobileKit/MobileKit.framework/Headers/NSData+CommonCrypto.h::: error: include of non-modular header inside framework module 'MobileKit.NSData_CommonCrypto': '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/CommonCrypto/CommonCryptor.h' [-Werror,-Wnon-modular-include-in-framework-module]
- ERROR | xcodebuild: /Users/zhangpeng/Library/Developer/Xcode/DerivedData/App-gasjivbufxjzbfgftsidmwdvawdj/Build/Products/Release-iphonesimulator/MobileKit/MobileKit.framework/Headers/NSData+CommonCrypto.h::: error: include of non-modular header inside framework module 'MobileKit.NSData_CommonCrypto': '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/CommonCrypto/CommonHMAC.h' [-Werror,-Wnon-modular-include-in-framework-module]
- NOTE | xcodebuild: /var/folders/tc/wx969bfd5nb7k427j1njlrs00000gn/T/CocoaPods-Lint---1wjc2um-MobileKit/App/main.m::: fatal error: could not build module 'MobileKit'

请加上--use-libraries:

pod spec lint --private --use-libraries --allow-warnings

六、远程索引库更新

pod repo push gitee-peter_zhang-mobilekitspec  MobileKit.podspec
//gitee-peter_zhang-mobilekitspec是你本地的索引指向在~/.cocoapods/repos目录下
//MobileKit.podspec项目下文件

如果提示错误

 pod repo push gitee-peter_zhang-mobilekitspec  MobileKit.podspec --use-libraries --allow-warnings

iOS组件化开发一使用source管理远端库升级(四)的更多相关文章

  1. iOS组件化开发入门 —— 提交自己的私有库

    前言:本人也是初次接触组件化开发,感觉现有的资料太繁杂,就简单整理了一下,在此跟大家分享一些入手的经验,主要就是描述cocoapods的私有库封装和提交.组件化开发是个大的议题,涉及到架构思路.设计模 ...

  2. iOS组件化开发-CocoaPods简介

    CocoaPods简介 任何一门开发语言到达一定阶段就会出现第三方的类库管理工具,比如Java的Maven.WEB的Webpack等.在iOS中类库的管理工具-CocoaPods. 利用CocoaPo ...

  3. iOS 组件化开发之使用CocoaPod制作自己的远程私有库

    随着应用需求逐步迭代,应用的代码体积将会越来越大,为了更好的管理应用工程,我们开始借助CocoaPods版本管理工具对原有应用工程进行拆分.但是仅仅完成代码拆分还不足以解决业务之间的代码耦合,为了更好 ...

  4. iOS组件化开发· 什么是组件化

    越来越多公司,开始了组件化,你还要等到什么时候...... 说到开发模式,我们最熟知的开发模式 MVC 或者最近比较热门的MVVM.但是我今天说的组件化的开发,其实MVC不是一类的.它其实是····· ...

  5. iOS组件化开发一本地环境配置(一)

    首先我们要使用pod支持组件化开发 解决CocoaPods慢的方案(gem和pod repo换源) gem换源 $ gem sources --remove https://rubygems.org/ ...

  6. iOS组件化开发一远端私有库建立(二)

    公共库业务,基础层划分! 一.构建私有云,本文推荐为码云 1.构建名称为LuckTimeSpec,选择私有建立: 2.Copy地址的https 链接: 二.打开终端 输入: cd /Users/zha ...

  7. iOS组件化开发一远程私有库的升级(三)

    一.远程私有库的升级 1. 把新增的类 拖入到 classes 文件夹中 : 2. 修改 pod.spec 文件的 s.verson = ‘0.2.0': 二.更新远程仓库 1.cd 到本地仓库的位置 ...

  8. iOS组件化开发-发布私有库

    远程索引库 将远程索引库添关联到本地 pod repo 查看本地已关联仓库源 pod repo add 本地索引库名称 远程索引库仓库地址 pod repo update 索引库名称 pod repo ...

  9. iOS组件化开发-CocoaPods安装

    首先要检查Mac是否安装了rvm(ruby version manager).打开终端,输入指令$ rvm -v ,若没有安装 curl -L https://get.rvm.io | bash -s ...

随机推荐

  1. ASP.NET Core SameSite 设置引起 Cookie 在 QQ 浏览器中不起作用

    最近在发布了基于 ASP.NET Core 实现的新版登录页面之后,陆陆续续地接到用户反馈登录时 Antiforgery Token 总是验证失败. 日志中记录的对应错误是 Antiforgery t ...

  2. x:Static

    用途:访问代码中的变量等 后台定义一个变量 public partial class GetStaticFromBackgroundCode : Window { public static stri ...

  3. jquery子元素过滤器

    <!DOCTYPE html><html><head><meta http-equiv="Content-Type" content=&q ...

  4. 计算机网络OSI参考模型与tcp/ip四层模型

    OSI参考模型--7层 1层物理层:主要定义物理设备标准,如网线的接口类型.光线的接口类型.各种传输介质的传输速率等.它的主要作用是传输比特流(就是由1.0转化为电流强弱来进行传输,到达目的地后在转化 ...

  5. 获取同时间段不同的时间 php

    /** * 根据指定日期返回经过的年月 * @param string $sDay 开始日期 * @param string $eDay 结束日期 * @returnse multitype:stri ...

  6. WPF的点击穿透

    1.background 为{x:null} 或  鼠标点击会穿透,如果不想让一个透明的border点击穿透,设置透明色Transparent时就可以点到这个看起来透明的border 2.当依赖属性I ...

  7. delphi 操作xml示例(DelphiBBS)

    自:http://www.delphibbs.com/keylife/iblog_show.asp?xid=20713 ======================================== ...

  8. python selenium chrome 测试

    #coding=utf-8 from selenium import webdriver from selenium.webdriver.common.keys import Keys from se ...

  9. 二叉树基本操作C代码

    #include<stdio.h> #include<malloc.h> #define LEN sizeof(struct ChainTree) struct ChainTr ...

  10. SQL 时间格式化函数发布

    SQL 时间格式化函数,有时候因某种需要需要格式化成需要的时间格式,需要的朋友可以收藏下,以备后用. SQL Server里面可能经常会用到的日期格式转换方法: sql server使用convert ...