[iOS][Xcode] Solution for Build Error 'While reading … pngcrush caught libpng error'

Tadashi Shigeoka ·  Tue, September 24, 2013

Memo on the solution for iOS app build error “While reading … pngcrush caught libpng error”.

CopyPNGFile Error Message

Command  emitted errors but did not return a nonzero exit code to indicate failure

Solution for CopyPNGFile Error

In Project Target -> Build Phases -> Copy Bundle Resources, if the image file name causing the error is registered as a duplicate, delete one of them.

Xcode-Copy_Bundle_Resources

That’s all from the Gemba.


Reference Information

ビルドエラー「While reading … pngcrush caught libpng error」への対処方法 - 甘いものが好きです

iphone - Not a PNG filCommand copypng emitted errors but did not return a nonzero exit code to indicate failure - Stack Overflow

[iOS] ビルドエラー(CopyPNGFile Error…)の対処法: ものづくりログ