#merging config result in unknown field `dmg`
1 messages · Page 1 of 1 (latest)
only with mobile (android at least, not tryed for ios)
error: failed to run custom build command for `lacaisse v0.1.0 (/Users/benoitdeveaux/Documents/ugo/la-caisse/src-tauri)`
Caused by:
process didn't exit successfully: `/Users/benoitdeveaux/Documents/ugo/la-caisse/src-tauri/target/debug/build/lacaisse-c3b3587e9a1a02db/build-script-build` (exit status: 1)
--- stdout
cargo:rerun-if-env-changed=TAURI_CONFIG
cargo:rerun-if-changed=tauri.conf.json
cargo:rustc-cfg=mobile
unknown field `dmg`, expected one of `active`, `targets`, `identifier`, `publisher`, `icon`, `resources`, `copyright`, `category`, `fileAssociations`, `short-description`, `shortDescription`, `long-description`, `longDescription`, `appimage`, `deb`, `macOS`, `external-bin`, `externalBin`, `windows`, `iOS`, `android`, `updater`
found an unknown configuration field. This usually means that you are using a CLI version that is newer than `tauri-build` and is incompatible. Please try updating the Rust crates by running `cargo update` in the Tauri app folder.
warning: build failed, waiting for other jobs to finish...
Error `Failed to run `cargo build`: command ["cargo", "build", "--package", "lacaisse", "--manifest-path", "/Users/benoitdeveaux/Documents/ugo/la-caisse/src-tauri/Cargo.toml", "--target", "x86_64-linux-android", "--lib"] exited with code 101
i think this is a version mismatch of tauri-build and your cli
one of them is outdated
lol the error says the same - i swear i thought about it without reading it 
build alpha v12, tauri alpha v18 in rust side and js side (@tauri-apps/cli)
it's only if I use -c
yeah because with the -c flag the cli tells tauri-build about anything config related, without the flag it doesn't do anything and let tauri-build handle it iself
js side versions?
or the output of tauri info so i can repro
[✔] Environment
- OS: Mac OS 14.1.2 X64
✔ Xcode Command Line Tools: installed
✔ rustc: 1.74.0 (79e9716c9 2023-11-13)
✔ cargo: 1.74.0 (ecb9851af 2023-10-18)
✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
✔ Rust toolchain: stable-x86_64-apple-darwin (default)
- node: 18.18.0
- pnpm: 8.10.5
- npm: 9.8.1
- bun: 1.0.0
[-] Packages
- tauri [RUST]: 2.0.0-alpha.18
- tauri-build [RUST]: 2.0.0-alpha.12
- wry [RUST]: 0.34.2
- tao [RUST]: 0.23.0
- tauri-cli [RUST]: 2.0.0-alpha.9
- @tauri-apps/api [NPM]: 2.0.0-alpha.12
- @tauri-apps/cli [NPM]: 2.0.0-alpha.18
[-] App
- build-type: bundle
- CSP: unset
- distDir: ../dist
- devPath: http://localhost:3000/
- framework: Vue.js (Nuxt)
- bundler: Vite
[-] iOS
- Developer Teams: retracted
I don't use the cli with rust
I have "tauri": "tauri" in package.json scripts
pnpm tauri -V
> @ tauri /Users/benoitdeveaux/Documents/ugo/la-caisse
> tauri "-V"
tauri-cli 2.0.0-alpha.18
the mac go bbrrrr with android emulator + ios simulator + rust compile (not yet m chip)
ok so another error with iosit was about libusb bad implementation of my own about cross compile
related to ld (ld: library 'lacaisse_lib' not found) I renamed app to lacaisse to make the app bundler co.ugo.lacaisse instead of co.ugo.app
but what I would say is config merging work on tauri desktop, ios, but not android
Hi, so it's tauri build which have outdatted impl with -c option ?
If it's tauri-build a simple cargo update should fix it. If it's still broken after that it should be the cli's fault
I already ran a cargo update
[[package]]
name = "tauri-build"
version = "2.0.0-alpha.12"
``` (from lockfile)