-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[bug] Unable to Build Tauri App on MacOS at all #10948
Comments
Log 1 and 3 is your frontend failing, which makes sense since it doesn't have access to Log 2 is missing another -- for npm to forward the bundles arg to tauri: Log 4 i can only guess. Maybe macOS is preventing inner executables to run to protect the admin folder (sounds unlikely), or cargo spawns them without admin permissions making them fail. I'm not much of a macos user but in my eyes coding projects have no reason to be in the admin acc/dir so i'm inclined to close this as wontfix and ask you to move the project to a normal user (unless of course there's a valid reason i'm not seeing). |
My username on mac is "administrator." That's why it seems like everything is under an "administrator" directory, cuz I didn't bother changing the username. I don't have other user accounts on my mac (nor that I see the necessity in creating one) and by default everything on a mac is under the main user (I think.) |
Also, I tried the command
I deleted the dist folder before running the command. |
Gonna close this for now, seems clueless. |
this is an issue on macOS, apparently: rust-lang/cargo#8913 |
I got it working using the |
hello is there any reason be founded?i have the similar problem |
try this |
2024/09/12 Status Update: I got it working using
npm run tauri build -- --debug
command.Describe the bug
I'm using Tauri v2-rc and on my Macbook Pro M1 2021 (OS version macOS Sequoia 15.1 Dev Beta) with an NPM version of 10.8.2 and Node v22. I created my project using the cargo quickstart commands. The project is Vue.js + TypeScript + Rust + Tauri.
I'm following the v2.tauri.app documentation.
After creating the project, I ran the app using
npm run tauri dev
, which works fine. Then I tried the following commands:npm run tauri build --bundles app
sudo npm run tauri build --bundles app
npm run tauri build
sudo npm run tauri build
All of which didn't build the application successfully. My repo is here: https://github.com/Type-32/dnd-utility-app
The logs for all command results above are as the following:
Log 1
Log 2
Log 3
Log 4
Is there anything I missed from the documentation? I have no experience with Rust whatsoever and this is my first time trying Rust through Tauri.
Reproduction
https://github.com/Type-32/dnd-utility-app
npm create tauri-app@latest -- --rc cd tauri-app npm install npm run tauri dev
Expected behavior
There should be a .app file in the build or somewhere around in the project files after building the app.
Full
tauri info
outputStack trace
Log 3
Log 4
The text was updated successfully, but these errors were encountered: