question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Failed to resize image: AppIcon20x20@3x.png. (Error: Input file contains unsupported image format)

See original GitHub issue

Environment

Environment: OS: macOS 10.14.3 Node: 8.3.0 Yarn: 1.7.0 npm: 5.3.0 Watchman: 4.9.0 Xcode: Xcode 10.1 Build version 10B61 Android Studio: Not Found

Packages: (wanted => installed) expo: 31.0.6 => 31.0.6 react: 16.6.3 => 16.6.3 react-native: 0.57.8 => 0.57.8

Diagnostics report: https://exp-xde-diagnostics.s3.amazonaws.com/arikanmstf-1bdc4436-24ef-4641-b24b-cf28ea40c6f1.tar.gz

Steps to Reproduce

  1. Running expo build like this: API_ENV=live expo build:ios

Expected Behavior

Should build successfully

Actual Behavior

As an application icon, I am using one withuot alpha or transparent channels. app.json is like this:

{
  "expo": {
    "icon": "./static/img/icon-no-alpha.png",
    "sdkVersion": "31.0.0",
    "privacy": "unlisted",
    "platforms": ["ios"],
     ...
  }
}

image

Build was working correct with transparent png file, However with transparent png file, Xcode’s Application Loader fails with following error:

ERROR ITMS-90717: "Invalid App Store Icon. The App Store Icon in the asset catalog in 'ExpoKitApp.app' can't be transparent nor contain an alpha channel."

image

Reproducible Demo

Here can be found build with full log:

https://expo.io/builds/bf69c1c4-f2e2-486f-a984-4ff5d7d55d76

(Paste the link to an example project and exact instructions to reproduce the issue.)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:23 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
evanheckertcommented, Mar 25, 2019

I’ve also tried it with 2.11.6, 2.11.7 and 2.13.0 with the same result. Saved from Preview with no Alpha, and even tried Photoshop 8-bit, no transparency. Same result every time. Really need to get this published - any other ideas?

1reaction
brad-ncommented, Aug 21, 2019

Looking for a work around as well. Everything worked fine a couple months ago. Made a quick code change and ran build:ios and I’m getting the same complaint about the icon as everyone else. The bundle pattern breaks it in different ways or doesn’t do anything.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I deployed my project, I am getting this error Input file contains ...
I deployed my project, I am getting this error Input file contains unsupported image format · Ask Question. Asked 1 year, 2 months...
Read more >
Input file contains unsupported image format - Gatsby
We are using the plugin gatsby-source-datocms. Note that gatsby build works sometimes perfectly. This error is random, but it is happening ...
Read more >
Problem Building: `Input file contains unsupported image format`
Hi, I'm having trouble when building. failed during stage 'building site': Build script returned non-zero exit code: 1 and Input file ...
Read more >
sharp - npm
High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images. Latest version: 0.31.0, ...
Read more >
How to Fix Unsupported File Error on Android? - YouTube
It can be frustrating to lose a photo due to file corruption. Have you ever encountered the vexing error page that appears when...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found