fix: build number 1 -> 2, and stop xcodegen silently resetting it
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:
@@ -22,9 +22,9 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<string>$(MARKETING_VERSION)</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
<string>$(CURRENT_PROJECT_VERSION)</string>
|
||||
<key>LSApplicationQueriesSchemes</key>
|
||||
<array>
|
||||
<string>tailscale</string>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user