Skip to content

Swift Atomics can't be used in Swift Playgrounds.app #62

@wtholliday

Description

@wtholliday

Swift Atomics can't be used in Swift Playgrounds.app because of a C target. We would like to use Swift Atomics in AudioKit (https://github.com/audiokit/audiokit) and we support Swift Playgrounds.

(Note that this bug is distinct from #55)

Information

  • Package version: 1.0.3
  • Platform version: 13.1 (22C65)
  • Swift version: swift-driver version: 1.62.15 Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)
    Target: x86_64-apple-macosx13.0

Checklist

  • If possible, I've reproduced the issue using the main branch of this package.
  • I've searched for existing reports of the same issue.

Steps to Reproduce

  1. Download Swift Playgrounds from App Store
  2. Create a new app
  3. File -> Add Package
  4. Enter https://github.com/apple/swift-atomics
  5. Click the play button

Expected behavior

Swift Atomics can be used in Swift Playgrounds.

Actual behavior

Compilation fails because Swift Atomics uses a C target.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions