[iOS][Xcode] ビルドエラー「While reading … pngcrush caught libpng error」の解決方法

iOSアプリのビルドエラー「While reading … pngcrush caught libpng error」の解決方法をメモ。

CopyPNGFile エラーメッセージ

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

CopyPNGFile エラーの解決方法

Project Target -> Build Phases -> Copy Bundle Resources にて、エラーが発生している画像ファイル名が重複して登録されている場合、片方だけ削除します。

Xcode-Copy_Bundle_Resources

以上です。


参考情報

ビルドエラー「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…)の対処法: ものづくりログ