Hello,
I am unable to successfully run expo build:ios using a codebase that had no issues running that command as of two weeks ago and has not been updated since. The error I receive is shown below:
I have absolutely no idea what this duplicate iCCP chunk error is and was hoping someone could point me in the right direction as to how to resolve this issue.
it’s possible that the png you provided is actually invalid and maybe the new version of sharp enforces this more strictly. you should try re-exporting your icon png.
I tried re-exporting the app icon to no success. I also tried replacing my current app icon with the placeholder app icon that comes from a newly created expo init project and that also did not work.
i was able to build the “blank” new app fine, next i went to https://buildicon.netlify.app/ to generate a fun little example icon and it worked as expected. i also tried this on an sdk 39 project to match yours.
you can try updating to the latest expo-cli but that is likely not related. it’s quite possible that there is some process running on your computer that is corrupting the png files somehow.
I also tried building a blank app and that ended up working (without updating expo-cli). So whatever the problem is seems to be specific to just the one project! Does that give you any ideas as to what the issue might be? I’ve tried using another computer while also providing various PNGs including one generated from https://buildicon.netlify.app/ but nothing seems to work.
Btw thank you for providing such quick responses. I’m very grateful!
is there any chance your project is being watched by a virus scanner or something that could possibly be modifying the files? can you try building that project from another computer? if that doesn’t work on another computer, try cloning it on that other computer and then replacing the icon
No I do not have any file modifying watchers on the project. I tried cloning the project and the issue still persists. I also tried cloning and building the project onto a different computer and that also resulted in an unsuccessful build.
I tried putting the supposed corrupt app icon into the blank project. When I ran a build on the blank project it worked. That seems to imply that the app icon is not the issue?
I figured it out. I left out the fact that I was using --no-publish which I now know was an incredibly crucial detail. I’m really sorry to have wasted your time. After running expo build:ios without any other options it now works.
glad you figured it out! fwiw on eas build that won’t be an issue in the future. we always build the app against whatever code is committed when you trigger the build, without needing to publish it