Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple Silicon support #129

Open
airhorns opened this issue Apr 28, 2024 · 6 comments
Open

Apple Silicon support #129

airhorns opened this issue Apr 28, 2024 · 6 comments

Comments

@airhorns
Copy link

It'd be really great to get a build for arm64 / apple silicon so duckdb performance is improved for macOS users on M* chips! Duckling works under the intel emulation mode but there is often a major performance hit from this emulation so a native build would be great!

Thanks for a great piece of open source software!

@l1xnan
Copy link
Owner

l1xnan commented Apr 28, 2024

I released version Duckling_0.0.33_aarch64.dmg with a build for arm64, but I don't have an Apple device and have never tested on it, if there are any questions or suggestions during use, please let me know

@airhorns
Copy link
Author

airhorns commented Apr 28, 2024

Thanks for the speedy resopnse! Gave that prerelease a shot and got this error trying to run the app after extracting it:
CleanShot 2024-04-28 at 14 38 57@2x

I am not very experienced with macOS development but I clicked the little ? at the top and got this help page that came up:
CleanShot 2024-04-28 at 14 39 33@2x
which suggests a code signing issue

@l1xnan
Copy link
Owner

l1xnan commented Apr 29, 2024

Sorry, this is because the app is not signed by Apple. Because it costs $99 annually for Apple support. One solution is to execute in terminal:

sudo xattr -r -d com.apple.quarantine /Applications/Duckling.app

OR

sudo xattr -c /Applications/Duckling.app

Refer to: https://www.davidhu.io/kube-knots/docs/installation/macos/#apple-silicon-build-error

@airhorns
Copy link
Author

Hm, I'm not sure that's what's happening. The dialog in that link you posted has a "open anyway" button at the bottom. When I run the intel build, I get the "cannot verify" dialog and I am able to overcome it by hitting the open button at the bottom. But when running the aarch64 build, I get "is damaged and can't be run", with no open button at the bottom. I think macOS is seeing it as a completely invalid signature, instead of none at all.

@abhiaagarwal
Copy link

Works fine if launched via CLI. You should be able to xattr -d com.apple.quarantine /path/to/Duckling.app to also solve this.

Screenshot 2024-06-02 at 12 09 09 PM

@jesseb34r
Copy link

sudo xattr -r -d com.apple.quarantine /Applications/Duckling.app

this worked for me, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants