iOS关于cocoapods的多人协同开发

2019-07-10  本文已影响0人  爱吃鱼的小灰

使用Trunk进行设置

$ pod trunk register 'your email' 'your name' --verbose
$ pod trunk me
$ pod trunk push xxx.podspec

将你的Podspec部署到Trunk并公开发布。

$ pod repo push REPO [NAME.podspec]

部署时间push:
在本地提示你的Podspec。你可以随时使用

$ pod sepc lint [NAME.podspec]

成功的lint将您的Podspec推送到Trunk或你的私人仓库

<font color="red">注意:
第一个将Podspec版本推送到Trunk的人可以添加其他维护者。也是这个库的所有者。</font>

添加其他人员写作开发

$ pod trunk add-owner podName 注册Trunk的邮箱

然后,这将会列出所有已知的库的所有者

<font color="red">注意:他们需要已经在trunk上注册了一个账户,以便将他们添加到库中</font>

关于Trunk的其他命令

$ pod trunk info pod库名字

返回有关pod库的信息

$ pod trunk me

包括有关你的注册信息,以及所有会话
这些是你当前的会话,其他有效会话,未验证的会话和过期的会话

$ pod trunk push xxx.podspec

Options:
--allow-warnings Allows push even if there are lint warnings

$ pod trunk remove-owner PODNAME OWNER-EMAIL

OWNER-EMAIL从指定的所有者中删除指定的用户POD。“所有者”是允许对库进行更改的注册用户,例如推送新版本以及添加和删除其他“所有者”。

$ pod trunk deprecate PODNAME
$ pod trunk delete NAME VERSION

这条删除命令官方给出的警告是:

WARNING: It is generally considered bad behavior to remove versions of a Pod that others are depending on! Please consider using the deprecate command instead.
Deletes the specified pod version from trunk and the master specs repo. Once deleted, this version can never be pushed again.

就是不建议你删除pod库,删除他人依赖的Pod库版本是很可耻的行为,建议使用废弃的指令

上一篇 下一篇

猜你喜欢

热点阅读