注意,是更新升级,默认本地已经添加过私有库管理,并已经和git仓库建立了链接,版本.podspec文件仓库,库仓库都已经建立的基础上
修改完库代码,并且修改完.podspec文件之后
只记录修改完代码之后,的命令行
Last login: Sat Jun 8 18:24:04 on ttys007
AppledeMacBook-Pro:~ apple$ cd /Users/apple/Desktop/KIT/LXBTestKit
AppledeMacBook-Pro:LXBTestKit apple$ git add .
AppledeMacBook-Pro:LXBTestKit apple$ git commit -m "second"
[master 0258ed8] second
Committer: Apple <apple@AppledeMacBook-Pro.local>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly. Run the
following command and follow the instructions in your editor to edit
your configuration file:
git config --global --edit
After doing this, you may fix the identity used for this commit with:
git commit --amend --reset-author
2 files changed, 8 insertions(+), 1 deletion(-)
AppledeMacBook-Pro:LXBTestKit apple$ git push -u origin master
Enumerating objects: 11, done.
Counting objects: 100% (11/11), done.
Delta compression using up to 4 threads
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 591 bytes | 591.00 KiB/s, done.
Total 6 (delta 4), reused 0 (delta 0)
remote: Resolving deltas: 100% (4/4), completed with 4 local objects.
To https://github.com/liuboliu/DevelopeKit
f389d66..0258ed8 master -> master
Branch 'master' set up to track remote branch 'master' from 'origin'.
AppledeMacBook-Pro:LXBTestKit apple$ git tag 0.1.1
AppledeMacBook-Pro:LXBTestKit apple$ git push origin 0.1.1
Total 0 (delta 0), reused 0 (delta 0)
To https://github.com/liuboliu/DevelopeKit
* [new tag] 0.1.1 -> 0.1.1
AppledeMacBook-Pro:LXBTestKit apple$ pod repo push LBTestSpec /Users/apple/Desktop/KIT/LXBTestKit/LXBTestKit.podspec
Validating spec
-> LXBTestKit (0.1.1)
- WARN | github_sources: Github repositories should end in `.git`.
- WARN | summary: The summary is not meaningful.
- NOTE | xcodebuild: note: Using new build system
- NOTE | [iOS] xcodebuild: note: Planning build
- NOTE | [iOS] xcodebuild: note: Constructing build description
[!] The `/Users/apple/Desktop/KIT/LXBTestKit/LXBTestKit.podspec` specification does not validate.
AppledeMacBook-Pro:LXBTestKit apple$ pod repo push LBTestSpec /Users/apple/Desktop/KIT/LXBTestKit/LXBTestKit.podspec
Validating spec
-> LXBTestKit (0.1.1)
- WARN | github_sources: Github repositories should end in `.git`.
- WARN | summary: The summary is not meaningful.
- NOTE | xcodebuild: note: Using new build system
- NOTE | [iOS] xcodebuild: note: Planning build
- NOTE | [iOS] xcodebuild: note: Constructing build description
[!] The `/Users/apple/Desktop/KIT/LXBTestKit/LXBTestKit.podspec` specification does not validate.
AppledeMacBook-Pro:LXBTestKit apple$ pod repo push LBTestSpec /Users/apple/Desktop/KIT/LXBTestKit/LXBTestKit.podspec --allow-warnings
Validating spec
-> LXBTestKit (0.1.1)
- WARN | github_sources: Github repositories should end in `.git`.
- WARN | summary: The summary is not meaningful.
- NOTE | xcodebuild: note: Using new build system
- NOTE | [iOS] xcodebuild: note: Planning build
- NOTE | [iOS] xcodebuild: note: Constructing build description
Updating the `LBTestSpec' repo
Adding the spec to the `LBTestSpec' repo
- [Update] LXBTestKit (0.1.1)
Pushing the `LBTestSpec' repo
AppledeMacBook-Pro:LXBTestKit apple$ pod install
[!] No `Podfile' found in the project directory.
AppledeMacBook-Pro:LXBTestKit apple$
自己需要输入的是
1 git add .
2git commit -m "second"
3git push -u origin master
4git tag 0.1.1
5git push origin 0.1.1
6 apple$ pod repo push LBTestSpec /Users/apple/Desktop/KIT/LXBTestKit/LXBTestKit.podspec --allow-warnings