iosflutterxcodeflutter-ios-build

Flutter iOS app version and build number not updating when Archiving in xCode


When I archive my iOS app in xCode for uploading to the Apple appstore it stopped gettign the right version number and build number:

enter image description here

My pubspec.yaml has the right numbers:

version: 1.0.9+11

And it looks right in xCode but not once it gets archived:

enter image description here


Solution

  • I needed to run flutter build ios before opening xcode and running archive. Now the versions numbers are correct.