swiftlang / swiftlang/swift-testing

Cannot enable C++ interop (deployment target too low)

Open
#142 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug darwin less-c++
Dominant language
Swift
Stars
2.2k
Forks
169
Avg merge
1d 18h
Merged PRs (30d)
56

Description

We cannot enable C++ interop in the package because it is only available as of macOS 13 (and aligned Apple releases.) Attempting to build produces this error diagnostic:

🛑 Compiling for macOS 10.15, but module 'CxxStdlib' has a minimum deployment target of macOS 13.0: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/CxxStdlib.swiftmodule/arm64-apple-macos.swiftmodule

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the package build that emits the reported CxxStdlib deployment-target diagnostic, then inspect the package's deployment-target configuration. Done should be defined by a successful build with C++ interop enabled on the supported Apple deployment targets.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.