Closed Eveeifyeve closed 6 months ago
Any updates/progress to this???
No update and no progress. To be honest, i don't think anybody will look into this anytime soon. Our best bet here is if someone from the nix community could take a look.
Maybe the solution is something in the same spirit as https://github.com/tauri-apps/tauri/issues/8588 here.
This is happening to me as well. I think it's a problem with objc_exception@0.1.2
. The dependency chain is: tauri v2.0.0-beta.14 -> cocoa v0.25.0 -> cocoa-foundation v0.1.2 -> objc v0.2.7 -> objc_exception v0.1.2
. Related issue: link.
I'm a complete dummy when it comes to compilers, but I followed the above-mentioned GitHub issue and deduced it has something to do with gcc
. I removed $PATH
entries that contained gcc
and the project worked just fine, since the build system defaulted to /usr/bin/gcc
.
However, gcc
is just clang
in disguise on macOS. I figured that adding llvmPackages.libcxxClang
to devenv.shells.default.packages
could also work. Lo and behold, this is what did the trick!
TLDR: change your flake.nix
++ (with pkgs; [
llvmPackages.libcxxStdenv
+ llvmPackages.libcxxClang
darwin.libobjc
rustup
]);
llvmPackages.libcxxClang
I am looking to make an unofficial flake template over here
Describe the bug
The issue is when running tauri the nomal way using cargo run it runs into this error:
Reproduction
https://github.com/Eveeifyeve/Tauri-Repo-Objc-exceptionSolved! Flake template at https://github.com/eveeifyeve/nix-tauri
Requires Nix!
To build dev enviroment
nix develop --impure
or just installdirenv
and it will do it for you.To run
bun issue
to run the issue and you will see.Expected behavior
It should not include this error and work.
Full
tauri info
outputStack trace