skip to Main Content

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

2

Answers


  1. Chosen as BEST ANSWER

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


  2. if you still have this issue after performing the command mentioned in accepted answer you should try to edit info.plist file manually:

    use below strings in info.plist:

    For CFBundleShortVersionString use –> $(MARKETING_VERSION)

    For CFBundleVersion use –> $(CURRENT_PROJECT_VERSION)

    this is how i solved that issue. hope it helps.


    ps: assuming that you are trying to change it through Xcode


    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search