Skip to content

Why does cargo tauri ios dev fail on a fresh project? #10911

Closed Answered by lkdm
lkdm asked this question in Q&A
Discussion options

You must be logged in to vote

Answer

So it turns out that there are issues with how PATH is resolved on Mac OS. Thank you to @jqpe for the original answer.

# for pnpm
ln -s $(which pnpm) /usr/local/bin/pnpm
# for node
ln -s $(which node) /usr/local/bin/node
# for cargo
ln -s $(which cargo) /usr/local/bin/cargo

Alternatively, there is a cleaner way to do this in the build scripts.

Additionally

  • The tauri ios dev command must be run with the --open flag, then the build initiated from Xcode.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by lkdm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant