tauri icon indicating copy to clipboard operation
tauri copied to clipboard

[bug] resource_dir_from() function, used for looking up resource files - not yet implemted for IOS?

Open lyager opened this issue 8 months ago • 0 comments

Describe the bug

Not sure to classify this as a bug, I know that you are working hard on getting V2 ready.

I've been looking at adding binary files to my IOS app, but traced the error down to the above mentioned function returning Err:UnsupportedPlatform. I'm uncertain how this is intended to work under IOS?

Reproduction

Calling const allFiles = await readDir('.', { baseDir: BaseDirectory.Resource, }); will throw error unknown path

Expected behavior

Content of resource folder should be returned.

Full tauri info output

[✔] Environment
    - OS: Mac OS 14.5.0 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.1 (2024-04-24)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (environment override by RUSTUP_TOOLCHAIN)
    - node: 20.14.0
    - pnpm: 9.1.4
    - yarn: 1.22.21
    - npm: 10.7.0

[-] Packages
    - tauri [RUST]: 2.0.0-beta.22
    - tauri-build [RUST]: no manifest (2.0.0-beta.17, 2.0.0-beta.17)
    - wry [RUST]: 0.40.1
    - tao [RUST]: 0.28.1
    - tauri-cli [RUST]: 2.0.0-beta.20
    - @tauri-apps/api [NPM]: 2.0.0-beta.13
    - @tauri-apps/cli [NPM]: 2.0.0-beta.20

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist/spa
    - devUrl: http://localhost:9000/
    - framework: Vue.js (Quasar)
    - bundler: Vite

Stack trace

No response

Additional context

No response

lyager avatar Jun 17 '24 08:06 lyager