You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Xcode project files contain the MARKETING_VERSION and CURRENT_PROJECT_VERSION variables that override the version and build number, respectively, in the Info.plist (and, by extension, the pubspec.yaml).
These are set by typing version and build number into Xcode directly:
This is usually not what a user wants, so we should probably introduce an iOS validator to check whether these are set and warn the user that the app version in their Info.plist/pubspec.yaml will not be applied and give them steps re: how to fix.
Steps to fix:
Go to your Runner (or whatever you've renamed your app to) target in Xcode
Click on Build Settings
Select "All" and "Levels"
Search for MARKETING_VERSION
Select the green rectangle and delete it
Do steps 4 and 5 for CURRENT_PROJECT_VERSION
The text was updated successfully, but these errors were encountered:
The cause of this problem in the Discord thread that spawned this issue was that FLUTTER_BUILD_NUMBER and FLUTTER_BUILD_NAME were set as user-defined values in Xcode.
bryanoltman
changed the title
fix: if MARKETING_VERSION or CURRENT_PROJECT_VERSION is set in Xcode project, pubspec version is ignored
fix: if MARKETING_VERSION or CURRENT_PROJECT_VERSION is overridden in Xcode project, pubspec version is ignored
Nov 19, 2024
Description
Xcode project files contain the
MARKETING_VERSION
andCURRENT_PROJECT_VERSION
variables that override the version and build number, respectively, in the Info.plist (and, by extension, the pubspec.yaml).These are set by typing version and build number into Xcode directly:
and are reflected in the
project.pbxproj
file:This is usually not what a user wants, so we should probably introduce an iOS validator to check whether these are set and warn the user that the app version in their Info.plist/pubspec.yaml will not be applied and give them steps re: how to fix.
Steps to fix:
MARKETING_VERSION
The text was updated successfully, but these errors were encountered: