Skip to content

fix: version number mismatch between iOS and Watch apps#700

Merged
dnzxy merged 1 commit intonightscout:devfrom
Sjoerd-Bo3:fix/version-mismatch-xcode-cloud-issue-699
Aug 11, 2025
Merged

fix: version number mismatch between iOS and Watch apps#700
dnzxy merged 1 commit intonightscout:devfrom
Sjoerd-Bo3:fix/version-mismatch-xcode-cloud-issue-699

Conversation

@Sjoerd-Bo3
Copy link
Contributor

Summary

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

Updated all app targets (Watch App, Watch Complication, Live Activity) to use version numbers from Config.xcconfig instead of hardcoded values:

  • Changed MARKETING_VERSION from 1.0 to $(APP_VERSION)
  • Changed CURRENT_PROJECT_VERSION from 1 to $(APP_BUILD_NUMBER)

This ensures all targets inherit the same version configuration from the central config file.

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

All app targets (Watch App, Watch Complication, Live Activity) now use
version numbers from Config.xcconfig instead of hardcoded values.

Changed:
- MARKETING_VERSION from "1.0" to "$(APP_VERSION)"
- CURRENT_PROJECT_VERSION from "1" to "$(APP_BUILD_NUMBER)"

This ensures all targets use the same version (0.5.0) and build number,
preventing Xcode Cloud build failures due to version mismatches.

Fixes #10
@bjornoleh
Copy link
Contributor

Was the last commit pushed to the wrong branch?

@Sjoerd-Bo3
Copy link
Contributor Author

Jup, shitttt

@Sjoerd-Bo3 Sjoerd-Bo3 force-pushed the fix/version-mismatch-xcode-cloud-issue-699 branch from eae2e09 to d81e139 Compare July 7, 2025 10:40
@Sjoerd-Bo3
Copy link
Contributor Author

@bjornoleh THANKS! Doing a lot at the same time. SO thanks for looking out. It is fixed now.

@Sjoerd-Bo3 Sjoerd-Bo3 self-assigned this Jul 7, 2025
@dnzxy dnzxy merged commit 8b1b0ae into nightscout:dev Aug 11, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants