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?
Meizu MX4 has been launched on the market. As the...
On the road of scientific exploration, countless ...
[[438831]] Preface After the tween animation move...
Produced by: Science Popularization China Author:...
[[150664]] It is a difficult process from the bir...
Several foreign media reported three traffic acci...
"Hot Fox Project" Video Account 1.0 mus...
Recently in Paris, US chipmaker Qualcomm unveiled ...
Although the first batch of hardware products run...
Microsoft announced the first free Windows version...
Cybersecurity Budget Investment – Organizations...
Jack Trading Academy JTA Professional Harmonic Pa...
How much does it cost to attract investment throu...
Although Apple's AirPods arrived almost two mo...
Why do many catering companies now choose to deve...