Compress PNG Files Error Group make me crazy :)

Hello everybody 🙂

I'm david and i begin in the beautifful Apple world 🙂

I try to build my first game to unity from xcode. But i have a problem and probably a stupid question.


Compress PNG Files Error Group

(null): While reading /Users/bouboumania/Desktop/IOS Release Dev/Libraries/Plugins/Android/facebook/res/drawable-hdpi/com_facebook_button_like_background.png pngcrush caught libpng error:

Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng emitted errors but did not return a nonzero exit code to indicate failure

(null): While reading /Users/bouboumania/Desktop/IOS Release Dev/Libraries/Plugins/Android/facebook/res/drawable-xxhdpi/com_facebook_button_like_background.png pngcrush caught libpng error:

(null): While reading /Users/bouboumania/Desktop/IOS Release Dev/Libraries/Plugins/Android/facebook/res/drawable-xhdpi/com_facebook_button_like_background.png pngcrush caught libpng error:

(null): While reading /Users/bouboumania/Desktop/IOS Release Dev/Libraries/Plugins/Android/facebook/res/drawable-hdpi/com_facebook_button_like_pressed.png pngcrush caught libpng error:

(null): While reading /Users/bouboumania/Desktop/IOS Release Dev/Libraries/Plugins/Android/facebook/res/drawable-xhdpi/com_facebook_button_like_pressed.png pngcrush caught libpng error:

(null): While reading /Users/bouboumania/Desktop/IOS Release Dev/Libraries/Plugins/Android/facebook/res/drawable-xxhdpi/com_facebook_button_like_pressed.png pngcrush caught libpng error:

(null): While reading /Users/bouboumania/Desktop/IOS Release Dev/Libraries/Plugins/Android/facebook/res/drawable-ldpi/com_facebook_close.png pngcrush caught libpng error:

Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng failed with exit code 1


Please, will you help to solve my problem? I check the the forum before adking my question but it's not really clear for me. Sorry, i'm a newbie 🙂


Thank a lot

Replies

I'm feeling yu

I uncheck 'compress PNG files' option in Project -> Target -> Build Settings -> Packaging -> Compress PNG Files


But now i have this message:


Compress PNG Files Error Group

Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng failed with exit code 2


Help 🙂

I make me crazy 🙂


Compress PNG Files Error Group

(null): While reading /Users/bouboumania/Desktop/IOS Release Dev/Libraries/Plugins/Android/facebook/res/drawable/com_facebook_button_blue_normal.9.png pngcrush caught libpng error:

Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng emitted errors but did not return a nonzero exit code to indicate failure

(null): While reading /Users/bouboumania/Desktop/IOS Release Dev/Libraries/Plugins/Android/facebook/res/drawable-hdpi/com_facebook_button_grey_pressed.9.png pngcrush caught libpng error:

(null): While reading /Users/bouboumania/Desktop/IOS Release Dev/Libraries/Plugins/Android/facebook/res/drawable-hdpi/com_facebook_button_like_background.png pngcrush caught libpng error:

(null): While reading /Users/bouboumania/Desktop/IOS Release Dev/Libraries/Plugins/Android/facebook/res/drawable-xhdpi/com_facebook_button_like_background.png pngcrush caught libpng error:

(null): While reading /Users/bouboumania/Desktop/IOS Release Dev/Libraries/Plugins/Android/facebook/res/drawable-hdpi/com_facebook_inverse_icon.png pngcrush caught libpng error:

(null): While reading /Users/bouboumania/Desktop/IOS Release Dev/Libraries/Plugins/Android/facebook/res/drawable/com_facebook_logo.png pngcrush caught libpng error:

(null): While reading /Users/bouboumania/Desktop/IOS Release Dev/Libraries/Plugins/Android/facebook/res/drawable-hdpi/com_facebook_logo.png pngcrush caught libpng error:

Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng failed with exit code 1

Was this ever solved? I'm having this issue right now.

Hi, i met the same error and solved it, may the method work for you.


1. Open it with "preview.app"

2. Click file -> output.. to save as png

Thanks Yori, this helped me✅

I had the same issue and had to not only uncheck 'compress PNG files' option in Project -> Target -> Build Settings -> Packaging, but also uncheck 'Strip PNG text', so that the png conversion tool is not called at all.

Hi There

I just did Product/Clean and that solved the problem...


Best regards

Jesper

Turns out I had to save the 3 pngcrush images with a new file name and replace them in Xcode...