plist bundle version values

前端 未结 1 2079
生来不讨喜
生来不讨喜 2021-02-13 09:19

I want to set the Bundle Version in my plist. However, it appears that the value that is actually LOOKED at by finder to put the version when you look at more info is \"bundle v

相关标签:
1条回答
  • 2021-02-13 09:42

    Yes, you can use ${VARIABLE} style macros the Info.plist file.

    We make a user-defined setting in the project called APP_VERSION, and then use ${APP_VERSION} in the CFBundleGetInfoString (Get Info string), CFBundleShortVersionString (Bundle versions string, short) and CFBundleVersion (Bundle version) keys. At build time, the variable gets filled in with the correct version.

    Watch out though because sometimes a clean build is necessary for Xcode to update the Info.plist file as it does not do dependency checking against the variables.

    0 讨论(0)
提交回复
热议问题