fix: build number 1 -> 2, and stop xcodegen silently resetting it
Some checks failed
CI / Build · Debug (push) Has been cancelled
CI / Build · Release (push) Has been cancelled

CFBundleVersion/CFBundleShortVersionString weren't declared in
project.yml's properties block, so xcodegen defaulted them to "1"/"1.0"
on every regenerate regardless of CURRENT_PROJECT_VERSION/
MARKETING_VERSION — bumping the build setting silently did nothing.
Declared both explicitly (matching how CFBundleIdentifier and
CFBundleExecutable already reference build settings), so version bumps
now actually reach the compiled app. Verified: CFBundleVersion "2" in
the built binary's Info.plist.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Kutesir
2026-07-13 03:42:14 +03:00
parent bb067df482
commit 3a6f1bbdd8
2 changed files with 5 additions and 3 deletions

View File

@@ -16,6 +16,8 @@ targets:
path: Jarvis/Info.plist
properties:
CFBundleDisplayName: Jervis
CFBundleShortVersionString: $(MARKETING_VERSION)
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
UILaunchScreen:
UIColorName: ""
UISupportedInterfaceOrientations:
@@ -38,7 +40,7 @@ targets:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.kisani.jarvis
MARKETING_VERSION: "1.0"
CURRENT_PROJECT_VERSION: "1"
CURRENT_PROJECT_VERSION: "2"
TARGETED_DEVICE_FAMILY: "1"
SWIFT_VERSION: "5.0"
# Device builds: automatic signing. Change DEVELOPMENT_TEAM to your team