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: iOS icons/splash are created twice and overwritten by a bigger one #588

Open
mburger81 opened this issue Dec 29, 2023 · 1 comment
Open

Comments

@mburger81
Copy link

Hello we create assets with your generator using version 3.0.4

If you look at the command output you can see that the icons and the spalshscreens are generated twice, everything is fine for the icon. For the light and the dark splashscreen first round are about 41,56KB and 41,94KB big. But they are generated a second time with a bigger image, in this case its 7,61MB and 7,61MB. So its like the original one.

This looks honestly strange to me. Why they are first generated and then overwritten with a bigger one? I think this could be a bug?

npx @capacitor/assets generate --ios
[log] xml(load) at /x/android/app/src/main/AndroidManifest.xml
[log] xml(load) Found root namespaces in XML file: http://schemas.android.com/apk/res/android http://schemas.android.com/tools
Generating assets for ios
CREATE ios icon /x/ios/App/App/Assets.xcassets/AppIcon.appiconset/[email protected] (14.51 KB)
CREATE ios splash /x/ios/App/App/Assets.xcassets/Splash.imageset/Default@1x~universal~anyany.png (41.56 KB)
CREATE ios splash /x/ios/App/App/Assets.xcassets/Splash.imageset/Default@2x~universal~anyany.png (41.56 KB)
CREATE ios splash /x/ios/App/App/Assets.xcassets/Splash.imageset/Default@3x~universal~anyany.png (41.56 KB)
CREATE ios splash-dark /x/ios/App/App/Assets.xcassets/Splash.imageset/Default@1x~universal~anyany-dark.png (41.91 KB)
CREATE ios splash-dark /x/ios/App/App/Assets.xcassets/Splash.imageset/Default@2x~universal~anyany-dark.png (41.91 KB)
CREATE ios splash-dark /x/ios/App/App/Assets.xcassets/Splash.imageset/Default@3x~universal~anyany-dark.png (41.91 KB)
CREATE ios icon /x/ios/App/App/Assets.xcassets/AppIcon.appiconset/[email protected] (14.51 KB)
CREATE ios splash /x/ios/App/App/Assets.xcassets/Splash.imageset/Default@1x~universal~anyany.png (7.61 MB)
CREATE ios splash /x/ios/App/App/Assets.xcassets/Splash.imageset/Default@2x~universal~anyany.png (7.61 MB)
CREATE ios splash /x/ios/App/App/Assets.xcassets/Splash.imageset/Default@3x~universal~anyany.png (7.61 MB)
CREATE ios splash-dark /x/ios/App/App/Assets.xcassets/Splash.imageset/Default@1x~universal~anyany-dark.png (7.61 MB)
CREATE ios splash-dark /x/ios/App/App/Assets.xcassets/Splash.imageset/Default@2x~universal~anyany-dark.png (7.61 MB)
CREATE ios splash-dark /x/ios/App/App/Assets.xcassets/Splash.imageset/Default@3x~universal~anyany-dark.png (7.61 MB)
@j6s
Copy link

j6s commented Oct 8, 2024

For what it's worth: I ran into similar issues, when I had multiple icon-* files in my assets directory. In my case, I had

  • assets/icon.svg - The 'full' icon
  • assets/icon-background.svg - The background part
  • assets/icon-foreground.svg - The foreground part
  • assets/icon-only.svg - The same as icon-foreground.svg, used for a different script

This last SVG file caused some (but not all) App-Icons to be re-generated incorrectly

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