Commit 760e617
committed
fix(ios): let flutter drive the bundle version instead of the xcode project
The Runner target hardcoded FLUTTER_BUILD_NUMBER = 200 and FLUTTER_BUILD_NAME = 6.13.0 in all three of its build configurations. Apple documents target-level settings as applied after a build configuration file, so these overrode the values Flutter writes into Generated.xcconfig — Info.plist reads CFBundleVersion from $(FLUTTER_BUILD_NUMBER), so every iOS build shipped as build 200 no matter what --build-number was passed.
That is why the release workflow's CFBundleVersion assertion failed on the first archive that got far enough to be checked. Left alone it would have been worse than a failed check: the first upload would have taken build 200 and every later one would have been rejected by App Store Connect as already used.
Remove both settings so the generated xcconfig owns them, and point Xcode's own CURRENT_PROJECT_VERSION and MARKETING_VERSION at the Flutter values rather than frozen copies that drift from pubspec at every release.1 parent aa5e96a commit 760e617
1 file changed
Lines changed: 6 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
484 | | - | |
| 484 | + | |
485 | 485 | | |
486 | 486 | | |
487 | | - | |
488 | | - | |
489 | 487 | | |
490 | 488 | | |
491 | 489 | | |
| |||
494 | 492 | | |
495 | 493 | | |
496 | 494 | | |
497 | | - | |
| 495 | + | |
498 | 496 | | |
499 | 497 | | |
500 | 498 | | |
| |||
674 | 672 | | |
675 | 673 | | |
676 | 674 | | |
677 | | - | |
| 675 | + | |
678 | 676 | | |
679 | 677 | | |
680 | | - | |
681 | | - | |
682 | 678 | | |
683 | 679 | | |
684 | 680 | | |
| |||
687 | 683 | | |
688 | 684 | | |
689 | 685 | | |
690 | | - | |
| 686 | + | |
691 | 687 | | |
692 | 688 | | |
693 | 689 | | |
| |||
705 | 701 | | |
706 | 702 | | |
707 | 703 | | |
708 | | - | |
| 704 | + | |
709 | 705 | | |
710 | 706 | | |
711 | | - | |
712 | | - | |
713 | 707 | | |
714 | 708 | | |
715 | 709 | | |
| |||
718 | 712 | | |
719 | 713 | | |
720 | 714 | | |
721 | | - | |
| 715 | + | |
722 | 716 | | |
723 | 717 | | |
724 | 718 | | |
| |||
0 commit comments