apple / swift-numerics

Advanced mathematical types and functions for Swift
Apache License 2.0
1.66k stars 140 forks source link

Error in Swift Playgrounds #281

Open J0N1X opened 4 months ago

J0N1X commented 4 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 4 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