Skip to content

[bug] FS Doesn't Work on IOS #8843

Open
tauri-apps/plugins-workspace
#2410
@Kai-Toyata

Description

Describe the bug

FS's readDir() (being called from JS front-end) is giving me "No such file or directory" for any path I've tried on an IOS simulator.

I have set the permissions correct, but it appears fs cannot access any files in the IOS filesystem

ERROR""failed to read directory at path: / with error: No such file or directory (os error 2)""

Is the error shown in the web console (inspected via safari).

Reproduction

Create a Tauri 2.0 app

Add
{ "identifier": "fs:scope", "allow": [ {"path":"$HOME/**"}, {"path":"**"}, {"path":"$HOME"} ] },
to capabilities

install fs plugin

Then call the readDir() function from JS

Expected behavior

No response

Full tauri info output

[✔] Environment
    - OS: Mac OS 14.1.2 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.75.0 (82e1608df 2023-12-21)
    ✔ cargo: 1.75.0 (1d8b05cdd 2023-11-20)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 20.10.0
    - npm: 10.2.3
    - bun: 1.0.18

[-] Packages
    - tauri [RUST]: 2.0.0-beta.2
    - tauri-build [RUST]: 2.0.0-beta.1
    - wry [RUST]: 0.35.2
    - tao [RUST]: 0.25.0
    - @tauri-apps/api [NPM]: 2.0.0-beta.0
    - @tauri-apps/cli [NPM]: 2.0.0-beta.1

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist/test/browser
    - devUrl: http://localhost:1420/
    - framework: Angular
    - bundler: Webpack

[-] iOS
    - Developer Teams: REDACTED

Stack trace

No response

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions