The issue has been solved
I currently get this warning:
ld: warning: ignoring file /Users/sindresorhus/Library/Developer/Xcode/DerivedData/Gifski-covufrfbnkqrunfagfxjgrfngrhp/Build/Intermediates.noindex/ArchiveIntermediates/Gifski/BuildProductsPath/target/release/libgifski.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
![](https://avatars0.githubusercontent.com/u/72159?v=4)
When compiling libgifski you need to add --target=aarch64-apple-darwin
to cargo build
and it'll build target/aarch64-apple-darwin/release/libgifski.a
compatible with Apple Silicon. That may require some wrangling with the xcode project file.
posted by kornelski over 4 years ago![](https://avatars1.githubusercontent.com/u/170270?v=4)
So we need two different build configurations in Vendored/gifski.xcodeproj
? And then we need the Gifski.xcodeproj
to pick the correct libgifski.a
based on the platform?
I'm not familiar with Rust and how the build stuff works, so I'm going to leave this for someone else.
I did try adding the build flag and:
āÆ rustup target add aarch64-apple-darwin
error: toolchain 'stable-x86_64-apple-darwin' does not contain component 'rust-std' for target 'aarch64-apple-darwin'
And it stopped there.
posted by sindresorhus over 4 years ago![](https://avatars0.githubusercontent.com/u/72159?v=4)
posted by kornelski over 4 years ago ![](https://avatars3.githubusercontent.com/in/29881?v=4)
posted by issuehunt-app[bot] about 4 years ago ![](https://avatars1.githubusercontent.com/u/170270?v=4)
rustup target add aarch64-apple-darwin
now works.
posted by sindresorhus about 4 years ago![](https://avatars.githubusercontent.com/u/5164617?v=4)
@sindresorhus there still is a fund on this issue as well as all other gifski issues. Just letting you know.
posted by lostdesign over 3 years ago![](https://avatars.githubusercontent.com/in/29881?v=4)
posted by issuehunt-app[bot] over 3 years ago