ZomsiCommonLibrary 0.1.4

ZomsiCommonLibrary 0.1.4

Mohsen Kaziri维护。



  • 作者
  • Mohson khaziri

ZomsiCommonLibrary

示例

要运行示例项目,请首先从仓库中克隆,然后从示例目录中运行pod install

需求

安装

ZomsiCommonLibrary通过私有spec文件提供。要安装它,只需将以下行添加到您的Podfile中

如果库不是公开的和私有的,需要指定源,如果是公开的和唯一的库,则不需要指定源。

platform :ios, '9.0'
source 'https://github.com/zomnsi/ZomsiCommonLibrary-Specs.git'

指定要添加的pod名称

pod 'ZomsiCommonLibrary'

命令

在GitHub上创建您的Podspec仓库

mkdir ZomsiCommonLibrary-Specs
cd ZomsiCommonLibrary-Specs
echo “# ZomsiCommonLibrary-Specs” >> README.md
git init
git add README.md 
git commit -m "first commit"
git remote add origin https://github.com/zomnsi/ZomsiCommonLibrary-Specs.git
git push -u origin master

将您的私有仓库添加到CocoaPods安装中

pod repo add ZomsiCommonLibrary-Specs https://github.com/zomnsi/ZomsiCommonLibrary-Specs.git

验证Specs文件的任何错误

cd ~/.cocoapods/repos/ZomsiCommonLibrary-Specs
pod repo lint .

在Github上创建您的Pod仓库

打开新的终端并使用以下命令创建库

pod lib create ZomsiCommonLibrary
cd ZomsiCommonLibrary

将Pod推送到仓库并创建新标签

echo “# ZomsiCommonLibrary” >> README.md
git init
git add README.md 
git commit -m "first commit"
git remote add origin https://github.com/zomnsi/ZomsiCommonLibrary.git
git push -u origin master
git tag 0.1.1
git push --tags

推送到Spec仓库,以便在本地CocoaPods中创建ZomsiCommonLibrary-Specs

pod repo push ZomsiCommonLibrary-Specs ZomsiCommonLibrary.podspec

检查本地CocoaPods中的pod是否已更新到最新版本

cd ~/.cocoapods/repos/ZomsiCommonLibrary-Specs
cd ZomsiCommonLibrary/
ls
0.1.0

在github中添加新的规格版本

https://i.stack.imgur.com/nC0BP.png

通过更新Specs仓库与团队成员分享

cd ZomsiCommonLibrary
pod repo add ZomsiCommonLibrary https://github.com/zomnsi/ZomsiCommonLibrary-Specs.git

将库发布到CocoaPods

验证身份

pod trunk register xyz@gmail.com 'Full Name'  
pod trunk push ZomsiCommonLibrary.podspec  

附加信息

git push --delete origin 0.1.4

链接

https://medium.com/@shahabejaz/create-and-distribute-private-libraries-with-cocoapods-5b6507b57a03 https://cocoapods.org.cn/pods/ZomsiCommonLibrary

作者

Mohson khaziri, [email protected]

许可

ZomsiCommonLibrary可获取MIT许可。请参阅LICENSE文件了解更多信息。