Skip to content

Condition CombineSchedulers dependency on iOS - #25

Merged
lukeredpath merged 1 commit into
lukeredpath:mainfrom
yqiang:declare-macos-platform
Jul 21, 2026
Merged

Condition CombineSchedulers dependency on iOS#25
lukeredpath merged 1 commit into
lukeredpath:mainfrom
yqiang:declare-macos-platform

Conversation

@yqiang

@yqiang yqiang commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

Condition the CombineSchedulers target dependency on iOS.

This keeps ResponsiveTextField’s supported platforms unchanged while allowing macOS SwiftPM consumers to resolve packages that include ResponsiveTextField only as an iOS-conditional dependency.

Motivation

ResponsiveTextField is iOS-only, but its dependency on CombineSchedulers is currently unconditional.

When a macOS package graph contains ResponsiveTextField behind an iOS platform condition, SwiftPM still validates its unconditional dependencies. Resolution then fails because ResponsiveTextField implicitly requires macOS 10.13 while CombineSchedulers requires macOS 10.15:

the library 'ResponsiveTextField' requires macos 10.13, but depends on the product 'CombineSchedulers' which requires macos 10.15

Conditioning the dependency on iOS avoids this validation failure without incorrectly declaring that ResponsiveTextField supports macOS.

Verification

Created a macOS SwiftPM consumer that references ResponsiveTextField using:

.product(
    name: "ResponsiveTextField",
    package: "swift-responsive-textfield",
    condition: .when(platforms: [.iOS])
)

@lukeredpath
lukeredpath merged commit 824d46d into lukeredpath:main Jul 21, 2026
1 check failed
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