cargo-mobile2 icon indicating copy to clipboard operation
cargo-mobile2 copied to clipboard

Rerunning `cargo mobile init` causes error: "gen/apple/assets: No such file or directory"

Open elliotwaite opened this issue 2 years ago • 1 comments

When I rerun cargo mobile init, it fails every other time with the following error.

ln: /Users/elliotwaite/code/tmp/tauri-test-drive/gen/apple/assets: No such file or directory
error: Asset dir couldn't be symlinked into Xcode project
    Failed to create a symbolic link from "../../assets" to directory "/Users/elliotwaite/code/tmp/tauri-test-drive/gen/apple" (file and directory clobbering enabled): `ln` command failed: Command "ln -n -s -f
    ../../assets /Users/elliotwaite/code/tmp/tauri-test-drive/gen/apple/assets" didn't complete successfully, exiting with code 1.

It seems like rerunning the command causes the gen/apple directory to be deleted, but then rerunning it again recreates that directory, making it succeed again.

elliotwaite avatar Feb 17 '23 04:02 elliotwaite

Not the same but another error on mac os running cargo mobile init with wry template

"error: Base project template processing from src"

Screenshot 2024-08-20 at 7 46 22 pm

jswhisperer avatar Aug 20 '24 18:08 jswhisperer