DEV Community

Kaede Games 🎮
Kaede Games 🎮

Posted on

CodeMagic 🪄 How to Update "build_number" automatically on CodeMagic

https://kaedeee.com/flutter-codemagic-build_number/

I resolved the issue that CodeMagic didn't automatically update the build number of iOS building after I've deployed my Flutter code to GitHub.

How to Resolve

  1. CodeMagic Setting

go to the tab,
build > build arguments

and type
--build-number=$(($BUILD_NUMBER))

スクリーンショット 2021-11-12 17.49.15.png

  1. Xcode Setting

At the Xcode > Info.plist,

check here.
key CFBundleShortVersionString
key CFBundleVersion

these both string to be $(FLUTTER_BUILD_NAME)

スクリーンショット 2021-10-10 0.02.46.png

https://kaedeee.com/flutter-codemagic-build_number/

Top comments (0)