As shown in the figure, select the build setting, since we want to get the version number here,
so here we get the current project version
Select info, set the bundle version to $(CURRENT_PROJECT_VERSION), pay attention to use underscore links, and use uppercase
If you want to customize the field, you can set the custom field in the user define in buildsetting, as shown in the figure
Similarly, custom fields can also be obtained using the above method in info