ionic-team / ionic-team/capacitor-assets

bug: iOS icons/splash are created twice and overwritten by a bigger one

Open
#588 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
583
Forks
116
PR merge metrics
No merged PRs in 30d

Description

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/AppIcon-512@2x.png (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/AppIcon-512@2x.png (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)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.