From a22082388255f235e9e028af1c8fb097a159a9dc Mon Sep 17 00:00:00 2001 From: Scarriffle Date: Sat, 12 Sep 2026 13:55:39 +0200 Subject: [PATCH] Versionsnummern kommen aus project.yml statt dreifach auseinanderzulaufen Die Info.plist hatte CFBundleShortVersionString und CFBundleVersion fest auf "1.0" und "1" stehen. Damit blieb jede Aenderung an MARKETING_VERSION wirkungslos: Xcode baute weiter 1.0, und da 1.0 bereits veroeffentlicht ist, lehnte App Store Connect den Upload ab ("Invalid Pre-Release Train"). Beide Werte ziehen jetzt ueber $(MARKETING_VERSION) und $(CURRENT_PROJECT_VERSION) aus den Build-Einstellungen - so, wie es die Datei fuer EXECUTABLE_NAME, PRODUCT_NAME und den Bundle-Identifier schon tat. Gepflegt werden sie in project.yml, die ohnehin die Quelle des Projekts ist; ein in Xcode angeklicktes 1.1 hatte der naechste "xcodegen generate" sonst wieder verworfen. Auf 1.1 (2) gesetzt und gegengeprueft: das gebaute Bundle meldet 1.1 / 2. Co-Authored-By: Claude Opus 5 --- ios/Sources/Info.plist | 4 ++-- ios/Vorrania.xcodeproj/project.pbxproj | 6 ++++-- ios/project.yml | 9 ++++++++- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/ios/Sources/Info.plist b/ios/Sources/Info.plist index d4c5518..0558e68 100644 --- a/ios/Sources/Info.plist +++ b/ios/Sources/Info.plist @@ -25,7 +25,7 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.0 + $(MARKETING_VERSION) CFBundleURLTypes @@ -38,7 +38,7 @@ CFBundleVersion - 1 + $(CURRENT_PROJECT_VERSION) ITSAppUsesNonExemptEncryption LSApplicationCategoryType diff --git a/ios/Vorrania.xcodeproj/project.pbxproj b/ios/Vorrania.xcodeproj/project.pbxproj index fb39216..b50cb99 100644 --- a/ios/Vorrania.xcodeproj/project.pbxproj +++ b/ios/Vorrania.xcodeproj/project.pbxproj @@ -359,6 +359,7 @@ CODE_SIGN_ENTITLEMENTS = Sources/Vorrania.entitlements; CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 2; DEVELOPMENT_TEAM = PP34X97WS3; GENERATE_INFOPLIST_FILE = NO; INFOPLIST_FILE = Sources/Info.plist; @@ -366,7 +367,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.0; + MARKETING_VERSION = 1.1; PRODUCT_BUNDLE_IDENTIFIER = com.scarriffle.vorrania; SDKROOT = iphoneos; SWIFT_VERSION = 5.9; @@ -381,6 +382,7 @@ CODE_SIGN_ENTITLEMENTS = Sources/Vorrania.entitlements; CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 2; DEVELOPMENT_TEAM = PP34X97WS3; GENERATE_INFOPLIST_FILE = NO; INFOPLIST_FILE = Sources/Info.plist; @@ -388,7 +390,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.0; + MARKETING_VERSION = 1.1; PRODUCT_BUNDLE_IDENTIFIER = com.scarriffle.vorrania; SDKROOT = iphoneos; SWIFT_VERSION = 5.9; diff --git a/ios/project.yml b/ios/project.yml index f76e23a..3c2cc9d 100644 --- a/ios/project.yml +++ b/ios/project.yml @@ -46,7 +46,14 @@ targets: ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon CODE_SIGN_STYLE: Automatic DEVELOPMENT_TEAM: PP34X97WS3 - MARKETING_VERSION: "1.0" + # Die einzige Stelle fuer die Versionsnummern. Die Info.plist zieht + # sie ueber $(MARKETING_VERSION)/$(CURRENT_PROJECT_VERSION) - frueher + # standen dort feste Werte, die jede Aenderung hier wirkungslos machten. + # MARKETING_VERSION ist die sichtbare Version (App Store), + # CURRENT_PROJECT_VERSION die Build-Nummer: muss bei jedem Upload + # innerhalb derselben Version steigen. + MARKETING_VERSION: "1.1" + CURRENT_PROJECT_VERSION: "2" TARGETED_DEVICE_FAMILY: "1,2" SWIFT_VERSION: "5.9" GENERATE_INFOPLIST_FILE: NO