Skip to content

Conversation

stephencelis
Copy link
Member

Unfortunately an Xcode bug prevents us from shipping a library with a C module without breaking common downstream scenarios, like an app having a unit test target. Trying to build such a target results in a compile error:

🛑 Missing required module '_CAsyncSupport'

While it is possible to work around the bug by publicly exposing the _CAsyncSupport module as a product and instructing users to manually link to this module in their test targets when they encounter this error, this is a bit of a support nightmare to manage for a helper that's hidden by SPI.

For more information, see:

  • This swift-atomics issue, which mentions that this is a tooling issue that cannot be solved by the package alone. Here's hoping Xcode 15 has a fix soon!
  • This GRDB.swift issue, which had the same problem and provides documentation to the end user to manually solve the problem.

This reverts commit 6158334.

@stephencelis stephencelis requested a review from mbrandonw April 14, 2023 21:18
@stephencelis stephencelis merged commit 98650d8 into main Apr 14, 2023
@stephencelis stephencelis deleted the revert-81 branch April 14, 2023 21:27
@stephencelis stephencelis added the apple bug Something isn't working due to a bug on Apple's platforms. label Apr 14, 2023
stephencelis added a commit to pointfreeco/swift-composable-architecture that referenced this pull request Apr 14, 2023
stephencelis added a commit to pointfreeco/swift-composable-architecture that referenced this pull request Apr 14, 2023
* Revert #2033

See pointfreeco/swift-dependencies#83 for more
info.

* wip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apple bug Something isn't working due to a bug on Apple's platforms.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant