When I archive my iOS app in xCode for uploading to the Apple appstore it stopped gettign the right version number and build number:
My pubspec.yaml has the right numbers:
version: 1.0.9+11
And it looks right in xCode but not once it gets archived: