Skip to content

Unable to generate assets AppIcon-512@2x.png: unable to open for write #635

Description

@JamieVangeysel

I tried generating assets for my existing project but got an error: Unable to generate assets ENOENT: no such file or directory, lstat '/Users/java/development/store-app_claes-distribution/ios/App/App/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png'
Which doesn't make much sense, when I create a file with that name it just goes on to the next file 'icon-20@3x.png' and complains it doesn't exist. in order to test this i created an empty work folder and ran the following:

#create test folder and install '@capacitor/assets'
mkdir test-resource
cd test-resource
npm install @capacitor/assets --save-dev
mkdir assets
# import my assets from project (icon.png, splash.png and splash-dark.png)
cp ~/development/store-app_claes-distribution/resources/* ./assets
# create /ios/App folder to mitigate complaints
mkdir ./ios && mkdir ./ios/App
# try to generate assets
npx @capacitor/assets generate --iconBackgroundColor '#ffffff' --iconBackgroundColorDark '#1a1a1a' --splashBackgroundColor '#ffffff' --splashBackgroundColorDark '#1a1a1a' --ios

running the above code will result in the error mentioned in the title which is bizarre? It seems to be unable to create files, only updates them but then deletes these files anyway.

If I'm obviously stupid please point that out because it might be ... I'm pulling my hair out on this one🙈

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions