简体   繁体   English

如何为开放源代码项目版本化XCode项目?

[英]How to version an XCode project for open source project?

I'm preparing to open source an XCode project I've been working on privately, on Github. 我正在准备在Github上私有化一个我一直在从事的XCode项目的开源。

I am planning on using Github's release feature and and tag the initial release as 0.1.0. 我计划使用Github的发布功能,并将初始发布标记为0.1.0。 This much I know. 我知道很多。

But I have one question: What's the best practice for the version number and build id of the XCode project itself going forward? 但是我有一个问题:XCode项目本身的版本号和构建ID的最佳做法是什么?

Do I need to update the version/build-id every time raise a version on Github? 每次在Github上提高版本时,我都需要更新version / build-id吗? Should these numbers be synchronized? 这些数字应该同步吗?

ps I know some people may try to close this saying this is "off topic" for Stackoverflow, but trust me I tried asking everywhere else and nobody answered. ps:我知道有些人可能会尝试关闭这句话,这对Stackoverflow来说是“题外话”,但是请相信我我尝试在其他地方询问,但没有人回答。 And I do think this type of question is relevant to Stackoverflow. 而且我确实认为这类问题与Stackoverflow有关。

For the 2cd question, whether you need to update the version on GitHub depend on you. 对于2cd问题,是否需要在GitHub上更新版本取决于您。 If you make huge changes for your code, maybe you can create a new release. 如果您对代码进行了很大的更改,也许可以创建一个新版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM