Closed dyzdyz010 closed 3 months ago
Could you share a minimal repro?
Could you share a minimal repro?
I barely just create a fresh new project using cargo create-tauri-app --alpha
, change nothing but bundle identifier.
bun
is running from gen/apple
but also has npm_lifecycle_event
been set, so it didn't change working dir back to the project root
Another issue I found is how bun
parses command arguments.
For example, "AA BB"
will be split into two argv "AA", "BB"
instead of a "AA BB"
string.
#!/bin/sh
bun run command --args "AA BB"
Escaping double quotes again will fix the issue, but this is really weird in shell script
#!/bin/sh
bun run command --args \"AA BB\"
Might relate to https://github.com/oven-sh/bun/issues/7667
So, right now, even if we fix the working dir bug, we still have this issue that needs to be addressed. Otherwise, the xcode-script
command will fail due to the argument --framework-search-path "path1 path2"
not being parsed correctly.
Not sure if it's bun
specific, I'm having the same issue whether I use bun
or npm
Tauri info
[✔] Environment
- OS: Mac OS 14.2.1 X64
✔ Xcode Command Line Tools: installed
✔ rustc: 1.77.2 (25ef9e3d8 2024-04-09)
✔ cargo: 1.77.2 (e52e36006 2024-03-26)
✔ rustup: 1.27.0 (bbb9276d2 2024-03-08)
✔ Rust toolchain: stable-aarch64-apple-darwin (default)
- node: 18.16.1
- pnpm: 8.10.2
- yarn: 1.22.19
- npm: 9.5.1
- bun: 1.1.0
[-] Packages
- tauri [RUST]: 2.0.0-beta.15
- tauri-build [RUST]: 2.0.0-beta.12
- wry [RUST]: 0.39.1
- tao [RUST]: 0.27.0
- @tauri-apps/api [NPM]: 2.0.0-beta.8
- @tauri-apps/cli [NPM]: 2.0.0-beta.13
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:3000/
- framework: Vue.js (Nuxt)
- bundler: Webpack
[-] iOS
- Developer Teams: xxxx (ID: xxxxxxxxx)
Also I'm not using webpack for my bundler, so your tauri info tool may not be totally accurate either. Nuxt uses Vite/Nitro internally
Update: Setting up a mobile project from scratch is working with npm. Doing the initial setup with bun must be breaking my other project even when trying to use npm (or there's something else legitimately wrong with my code)
Either way, ignore my previous comment
I have the same problem with iOS when using Bun to create a project while Android and Desktop work perfectly well. With npm iOS compiles successfully so it is a Bun/iOS-specific issue.
I'm facing the same issue with iOS in beta version. I created my project with Bun
. Running bun run tauri ios dev
makes the build fail with same error. I tried cargo tauri ios dev
and npm tauri ios dev
too, nothing works. Is there any other quick work around for this?
This should be fixed by #10569
Describe the bug
bun run tauri ios dev
returns error:Reproduction
Then
bun run tauri ios dev
Expected behavior
Start dev server without error
Full
tauri info
outputStack trace
No response
Additional context
No response