Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lyager opened this issue Jun 17, 2024 · 0 comments
Labels
platform: iOS status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@lyager
Copy link
Contributor

lyager commented Jun 17, 2024

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 lyager added status: needs triage This issue needs to triage, applied to new issues type: bug labels Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: iOS status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

2 participants