Sliders-SwiftUI icon indicating copy to clipboard operation
Sliders-SwiftUI copied to clipboard

This fails to build with a Generic iOS Device, use of undeclared type 'VectorArithmetic'

Open lucasteng123 opened this issue 4 years ago • 7 comments

Both when included in my own project, and with the example project attached. Will compile and run with the simulator, or real devices. Will not build by itself though

lucasteng123 avatar Apr 23 '20 18:04 lucasteng123

I recently had the same issue. The fix I found is to copy and paste the library onto your app rather than use it as a package. I have filed a report, and am awaiting a better fix.

kieranb662 avatar Apr 23 '20 18:04 kieranb662

I will keep this issue open until a better solution is obtained.

kieranb662 avatar Apr 23 '20 19:04 kieranb662

That workaround worked for me, thank you!

lucasteng123 avatar Apr 23 '20 19:04 lucasteng123

@kieranb662 @lucasteng123 Do you have more details about the workaround? Nothing seems to help here.

I have the same VectorArithmetic error and removing the library from Swift Packages and adding it via drag and drop with all required libraries doesn't work (same error)

Any ideas what I'm doing wrong (at least for the workaround)?

Thanks!

vshvedov avatar Jun 10 '20 23:06 vshvedov

Screen Shot 2020-06-13 at 4 15 29 PM

This worked for me. I downloaded the repo as a zip file from GitHub and dragged the whole thing into the Frameworks folder of my Xcode project. I then added the library to Targets>{app name}>Build Phases>Link Binary with Libraries.

literalpie avatar Jun 13 '20 20:06 literalpie

Thanks @literalpie! I will give it a try another time!

vshvedov avatar Jun 14 '20 08:06 vshvedov

I'm only having this issue while profiling. Build&Run works with no problems at all. I tried adding the solution in the comments but no luck.

kocered-tech avatar Sep 08 '20 11:09 kocered-tech