8000 Fix version number mismatch between iOS and Watch apps for Xcode Cloud builds · Issue #699 · nightscout/Trio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Fix version number mismatch between iOS and Watch apps for Xcode Cloud builds #699
Open
@Sjoerd-Bo3

Description

@Sjoerd-Bo3

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 from 1.0 to $(APP_VERSION)
  • Change CURRENT_PROJECT_VERSION from 1 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

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0