-
Hello! I'm having trouble using the # Choose leptos
cargo create-tauri-app --rc
cargo tauri ios init
cargo install tauri-cli --version '^2.0.0-rc' # was prompted to update tauri-cli
cargo tauri ios dev Output
Here's my
Here's my {
"productName": "deepfocusflow_mobile",
"version": "0.1.0",
"identifier": "com.deepfocusflow.dev",
"build": {
"beforeDevCommand": "trunk serve",
"devUrl": "http://localhost:1420",
"beforeBuildCommand": "trunk build",
"frontendDist": "../dist"
},
"app": {
"withGlobalTauri": true,
"windows": [
{
"title": "mobile",
"width": 800,
"height": 600
}
],
"security": {
"csp": null
}
},
"bundle": {
"active": true,
"targets": "all",
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/[email protected]",
"icons/icon.icns",
"icons/icon.ico"
]
}
}
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I don't know if this is a red herring, but it seems that the xcode build process does not recognise the cargo command in the shell script
When I run this command in bash it definitely exists. |
Beta Was this translation helpful? Give feedback.
-
AnswerSo 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
|
Beta Was this translation helpful? Give feedback.
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.
Alternatively, there is a cleaner way to do this in the build scripts.
Additionally
tauri ios dev
command must be run with the--open
flag, then the build initiated from Xcode.