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>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>1.0</string>
|
<string>$(MARKETING_VERSION)</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>1</string>
|
<string>$(CURRENT_PROJECT_VERSION)</string>
|
||||||
<key>LSApplicationQueriesSchemes</key>
|
<key>LSApplicationQueriesSchemes</key>
|
||||||
<array>
|
<array>
|
||||||
<string>tailscale</string>
|
<string>tailscale</string>
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ targets:
|
|||||||
path: Jarvis/Info.plist
|
path: Jarvis/Info.plist
|
||||||
properties:
|
properties:
|
||||||
CFBundleDisplayName: Jervis
|
CFBundleDisplayName: Jervis
|
||||||
|
CFBundleShortVersionString: $(MARKETING_VERSION)
|
||||||
|
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
|
||||||
UILaunchScreen:
|
UILaunchScreen:
|
||||||
UIColorName: ""
|
UIColorName: ""
|
||||||
UISupportedInterfaceOrientations:
|
UISupportedInterfaceOrientations:
|
||||||
@@ -38,7 +40,7 @@ targets:
|
|||||||
base:
|
base:
|
||||||
PRODUCT_BUNDLE_IDENTIFIER: com.kisani.jarvis
|
PRODUCT_BUNDLE_IDENTIFIER: com.kisani.jarvis
|
||||||
MARKETING_VERSION: "1.0"
|
MARKETING_VERSION: "1.0"
|
||||||
CURRENT_PROJECT_VERSION: "1"
|
CURRENT_PROJECT_VERSION: "2"
|
||||||
TARGETED_DEVICE_FAMILY: "1"
|
TARGETED_DEVICE_FAMILY: "1"
|
||||||
SWIFT_VERSION: "5.0"
|
SWIFT_VERSION: "5.0"
|
||||||
# Device builds: automatic signing. Change DEVELOPMENT_TEAM to your team
|
# Device builds: automatic signing. Change DEVELOPMENT_TEAM to your team
|
||||||
|
|||||||
Reference in New Issue
Block a user