24

I am developing an app using Ionic and Capacitor. Builds are generated using Ionic's new AppFlow service, so I don't build them locally.

How do I go about updating the iOS and Android version numbers? I've tried updating the plist and config.xml, but all updates result in a version number of "1.0", regardless of what I do.

4

2 回答 2

73

所以,电容器很整洁!android 和 ios 配置实际上致力于源代码控制。要更新版本号,只需更新以下文件:

  • Android - android/app/build.gradle(您正在寻找versionName变量)
  • iOS - ios/App/App/Info.plist*(您正在寻找CFBundleShortVersionString密钥)
于 2019-11-27T14:48:21.650 回答
3

In Android Studio 4.2.1 We can set version values in File > Project Structure > Modules > Default Config

enter image description here

于 2021-05-29T16:03:40.370 回答