apple / swift-numerics

Advanced mathematical types and functions for Swift
Apache License 2.0
1.69k stars 147 forks source link

Error in Swift Playgrounds #281

Open ghost opened 8 months ago

ghost commented 8 months ago

Swift Playgrounds

When package is added to a Swift Playgrounds „app“ it automatically sends an error: „clangTarget is not supported“.

Can it be fixed? I‘m a newbie to swift so I don’t know.

JimmyMAndersson commented 8 months ago

You get this error because Swift Playgrounds does not support C targets - and Numerics depends on a C target.

The comments in this thread still hold true: https://forums.swift.org/t/would-it-be-possible-to-remove-clang-dependencies-from-swift-numerics/67366