Closed MarvelousAnything closed 9 months ago
This is probably a good idea, but I'm curious whether you had the x86_64
rust toolchain on your m1 mac
Yes. I do. I will try to build it after uninstalling the x86_64
toolchain. I will update you when I am done with that. If that fixes it, I will be more confused.
Just recompiled it after uninstalling the x86_64
toolchain. My only toolchain now is aarch64-apple-darwin
. It failed with the same issue. I did some debugging yesterday on this and narrowed it down to the specific swift build
command. The funny thing is when I manually ran the command, it worked fine.
I was having issues building Spacedrive. It was building
libsd-desktop-macos.a
toswift-rs/sd-desktop-macos/x86_64-apple-macosx
instead of swift-rs/sd-desktop-macos/arm64-apple-macosx
. This prevented it from linking. I did also confirm that it was compiling for arm64, not x86. I eventually found that adding the--arch
flag to the swift build command in swift-rs fixed it. I have tested compiling it on an x86 and m1 Mac, and it does not break it.