iOS uses the configuration items in the build setting to configure info.plist

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
Please add a picture description

Select info, set the bundle version to $(CURRENT_PROJECT_VERSION), pay attention to use underscore links, and use uppercase
Please add a picture description

If you want to customize the field, you can set the custom field in the user define in buildsetting, as shown in the figure
Please add a picture description

Similarly, custom fields can also be obtained using the above method in info

Guess you like

Origin blog.csdn.net/LIUXIAOXIAOBO/article/details/132247945