Skip to content

Conversation

@rrolland
Copy link
Contributor

@rrolland rrolland commented Jun 26, 2025

When integrating analytics-swift-consent into a project that supports watchOS, you may encounter the following error:

The package product Segment requires minimum platform version 7.1 for the watchOS platform, but this target supports 6.0.

This occurs because the Segment package sets its minimum watchOS version to 7.1 in its Package.swift file, while the analytics-swift-consent plugin does not specify a minimum version, defaulting to watchOS 6.0 as per Apple’s documentation:

By default, the Swift Package Manager assigns a predefined minimum deployment version for each supported platform unless you configure supported platforms using the platforms API. This predefined deployment version is the oldest deployment target version that the installed SDK supports for a given platform.

To resolve this error, ensure that both packages specify the same minimum watchOS version (7.1) in their Package.swift files. This will align the platform requirements and fix the integration issue.

@bsneed bsneed merged commit 4fbdcc1 into segment-integrations:main Jul 2, 2025
1 check 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.

2 participants