美文网首页
cocoapod远程私有库升级迭代

cocoapod远程私有库升级迭代

作者: 刘铁崧 | 来源:发表于2020-08-30 12:25 被阅读0次
  1. 将修改后的文件放入Classes文件夹内,cd到Example文件目录下,并安装



liutiesongdeMacBook-Pro-2:TestPodPodpod liutiesong$ cd /Users/liutiesong/Desktop/remoteLib/CYOCBasePod/Example 
liutiesongdeMacBook-Pro-2:Example liutiesong$ pod install
Analyzing dependencies
Downloading dependencies
Installing CYOCBasePod 0.1.0
Generating Pods project
Integrating client project
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.
liutiesongdeMacBook-Pro-2:Example liutiesong$ 
  1. 修改spec文件将版本号更新


  2. cd到CYOCBasePod最外层文件夹
# 检测代码状态
git status
# 添加到暂存区
git add .
# 提交代码
git commit -m '追加color分类'
# push到远程
git push origin master
  1. 打版本标签
liutiesongdeMacBook-Pro-2:CYOCBasePod liutiesong$ git tag '0.2.0'
liutiesongdeMacBook-Pro-2:CYOCBasePod liutiesong$ git push --tag
Total 0 (delta 0), reused 0 (delta 0)
To https://e.coding.net/cyfactory/cy_oc_basepod/cy_oc_basepod.git
 * [new tag]         0.2.0 -> 0.2.0
  1. 检查spec
pod spec lint
  1. 提交spec
pod repo
pod repo push coding-specs CYOCBasePod.podspec 
liutiesongdeMacBook-Pro-2:CYOCBasePod liutiesong$ pod repo

coding-specs
- Type: git (master)
- URL:  git@e.coding.net:cyfactory/specs/specs.git
- Path: /Users/liutiesong/.cocoapods/repos/coding-specs

trunk
- Type: CDN
- URL:  https://cdn.cocoapods.org/
- Path: /Users/liutiesong/.cocoapods/repos/trunk

2 repos
liutiesongdeMacBook-Pro-2:CYOCBasePod liutiesong$ pod repo push coding-specs CYOCBasePod.podspec 

Validating spec
 -> CYOCBasePod (0.2.0)
    - NOTE  | xcodebuild:  note: Using new build system
    - NOTE  | xcodebuild:  note: Building targets in parallel
    - NOTE  | [iOS] xcodebuild:  note: Planning build
    - NOTE  | [iOS] xcodebuild:  note: Constructing build description
    - NOTE  | [iOS] xcodebuild:  warning: Skipping code signing because the target does not have an Info.plist file and one is not being generated automatically. (in target 'App' from project 'App')
    - NOTE  | [iOS] xcodebuild:  note: Execution policy exception registration failed and was skipped: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" (in target 'CYOCBasePod' from project 'Pods')
    - NOTE  | [iOS] xcodebuild:  note: Execution policy exception registration failed and was skipped: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" (in target 'Pods-App' from project 'Pods')
    - NOTE  | [iOS] xcodebuild:  note: Execution policy exception registration failed and was skipped: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted" (in target 'App' from project 'App')

Updating the `coding-specs' repo


Adding the spec to the `coding-specs' repo

 - [Update] CYOCBasePod (0.2.0)

Pushing the `coding-specs' repo

liutiesongdeMacBook-Pro-2:CYOCBasePod liutiesong$ 


相关文章

网友评论

      本文标题:cocoapod远程私有库升级迭代

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