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

Issue

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.

Answered By – Ten Digit Grid

Answer Checked By – Terry (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *