简体   繁体   English

iOS中的版本控制以进行更新

[英]Version control in iOS for an update

I recently released an app to the app store, and it works pretty well, but there were a few errors that I need to fix in an update. 我最近在应用商店中发布了一个应用,并且运行良好,但是我需要在更新中修复一些错误。 Namely, sometimes the score doesn't save correctly, and users cannot listen to their own music in the app. 也就是说,有时乐谱无法正确保存,并且用户无法在应用程序中收听自己的音乐。 I never used version/source control when building the project, and I never used github. 构建项目时,我从未使用过版本/源代码控制,也从未使用过github。

So, I'm wondering if I should save a copy of the current version before updating it, or if the archive (created when I submitted the project to iTunes connect) is a suitable copy of the project (or is the archive in binary?)? 因此,我想知道是否应该在更新之前保存当前版本的副本,或者存档(将项目提交至iTunes connect时创建的存档)是否适合该项目的副本(或者存档是否为二进制文件? )?

If the archive does not work as a copy of the code I can revert to (because it is in binary), are there any recommendations on how to save this working version of the app? 如果归档文件不能作为我可以还原的代码的副本(因为它是二进制文件),那么关于如何保存此应用程序的工作版本有任何建议吗? Also, should I change the plist version before making edits? 另外,在进行编辑之前,我应该更改plist版本吗?

Thanks. 谢谢。 If this question is unclear just comment and I will try to explain better. 如果这个问题不清楚,请发表评论,我会尽力解释。

The best answer is simple: use a dedicated software version control system. 最佳答案很简单:使用专用的软件版本控制系统。

Use Git. 使用Git。

Git documentation and getting started help. Git文档和入门帮助。

It's very easy to get started, even if you already have a ton of code. 即使您已经有大量的代码,也很容易上手。

$ cd ~/path/to/project
$ git init
$ git add -A 
$ git commit -m "This is the version that is currently on the store"

Done. 完成。

Alternatives: 备择方案:

  • Create a copy of your Xcode project folder. 创建Xcode项目文件夹的副本。
  • An Xcode archive is not good enough because you may need to revert back your code. Xcode存档不够好,因为您可能需要还原代码。

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

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