Skip to content

Don’t specify a default type for the exported Swift package library#3953

Merged
parrt merged 1 commit intoantlr:devfrom
tonyarnold:swift-pm-no-default-type
Nov 19, 2022
Merged

Don’t specify a default type for the exported Swift package library#3953
parrt merged 1 commit intoantlr:devfrom
tonyarnold:swift-pm-no-default-type

Conversation

@tonyarnold
Copy link
Contributor

This PR proposes removing the type: .dynamic property of the main library exported from the Swift package.

Forcing the type of the library means that the project will always be generated as a framework bundle, which is fine for application targets, but complicates CLI targets.

Xcode includes smarts to determine what the appropriate type is to use, and the library does not appear to make use of any framework-specific features like resource bundling, so this should be a low impact change for users of the library.

@tonyarnold tonyarnold marked this pull request as draft November 8, 2022 23:39
Signed-off-by: Tony Arnold <tony@thecocoabots.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants