We have been trying to make version numbers compatible with different usage habits, but we found that many developers are unfamiliar with how to better use version numbers to identify applications. This is a basic article that briefly introduces iOS version numbers. Glossary
In iOS development, these two numbers can be any string or number. The situations we are currently facing are:
The method of obtaining it is also very simple: Why use version numbers?1. Convenient labeling and communicationAs mentioned above, version number updates will have a positive effect on promotion. So the version number should not be too long. If it is like "We grandly launch XXXX 1.7.14.19257!", it will make users feel boring and like TV shopping, and it is not conducive to dissemination. If it is "XXXX 3.0, very different!", it may produce better communication effect. 2. Convenient Bug TrackingIt is certain that an application has bugs, but quickly locating and solving the problem reflects the ability of the team and programmers. We often encounter developers who say that they submitted a version, but the version downloaded is still old. When we help them solve the problem, they themselves can't figure out which is which. If the current version can be displayed in places such as "About", it will be easier to find the problem. Or colleagues in the test team may have several different branches of the version being tested at the same time, and they need to accurately describe a test version. Automatically change the build number As mentioned above, 1. agvtool (Apple-generic versioning tool)agvtool is Apple's command line tool and the most convenient tool integrated in Xcode. We use this method in the script to automatically compile the SDK. In fact, it only takes one line (for other advanced uses, please refer to the previous link): Before use, you need to do some simple configuration in Xcode, as shown in the figure: 2. SCM-based version control number The most commonly used SCMs nowadays are Git and SVN, and there are some relatively niche ones such as hg which I will not introduce in detail here.
The rest are the same: In this way, each time you compile the app, the version number will be automatically added to Just add the above two lines of code to "Build Phase > Run Script": 3. Based on date and timeUsing the release date as the version is also a common method used by many applications because it is easy to remember and understand. Here is the code directly: The rest are the same: The usage is the same as above. How to useAs long as the version number is configured, no manual intervention is required for other things. Here are two usage scenarios. 1. Crash Collection Collecting crashes is a necessary part of application development. By analyzing and fixing crash information, the stability of the application can be greatly improved without disappointing more users or even causing them to delete the application. 2. User Feedback Users who can actively report problems are excellent users. We will take their requests seriously regardless of whether they are reasonable or not. |
<<: What mobile developers need to know about pixels
>>: Are you suffering from developer ALS?
I don’t know when it started, but Youku Video’s i...
For today’s young people, if they don’t have two ...
Tutorial on how to make money with big data query...
This year, Guangzhou has experienced the longest ...
Today I will share with you a small project that ...
Buy, buy, buy!!! This phrase has been very popular...
Nowadays, “two Weibo and one Douyin” have become ...
As more and more industries move from the era of ...
It is becoming increasingly difficult to live str...
Whether it is a search account or an information ...
[[223748]] The iPhone X, a narrow-framed phone la...
At the Tokyo Olympics, balance beam champion Guan...
At about 11:00 today, the Health and Health Burea...
Master screenwriter Robert McKee once wrote: Stor...