Open
Description
Problem
When building via Xcode Cloud, the build fails with:
CFBundleShortVersionString Mismatch. The CFBundleShortVersionString value '1.0'
of watch application 'Trio.app/Watch/Trio Watch App.app' does not match the
CFBundleShortVersionString value '0.5.0' of its containing iOS application 'Trio.app'.
Solution
All app targets (Watch App, Watch Complication, Live Activity) should use version numbers from Config.xcconfig
instead of hardcoded values:
- Change
MARKETING_VERSION
from1.0
to$(APP_VERSION)
- Change
CURRENT_PROJECT_VERSION
from1
to$(APP_BUILD_NUMBER)
This ensures all targets inherit the same version configuration from the central config file.
Impact
- Fixes Xcode Cloud build failures
- Ensures version consistency across all app targets
- Prevents future version mismatch issues
Test Plan
- Build the app locally and verify all targets have version 0.5.0
- Submit to Xcode Cloud and verify the build succeeds
- Check that Watch App shows correct version in Settings
Metadata
Metadata
Assignees
Type
Projects
Status
No status