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

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

Open
elliotwaite opened this issue Feb 17, 2023 · 1 comment

Comments

@elliotwaite
Copy link

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.

@jswhisperer
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants