LoginSignup
4
2

More than 5 years have passed since last update.

【Xcode】pngcrushエラー対処法【iOS】

Posted at

Xcodeでビルドした時、こんなエラーが出たら…
While reading /xxxxxx/xxxxxxxx/xxxxxx/xxxxx.png pngcrush caught libpng error

まずは、プロジェクトに同名のpngファイルが存在していないか?を確認。
存在していなければ、とりあえず、Build Settingsの以下の2つをNOにしてみる。

Compress PNG files -> NO
Remove Text Metadata From PNG files -> NO

そしたら念のため、ビルド前にClean Build for... をしておく。

ちなみに Clean Build for...は、Xcodeメニュー:Productを optionを押しながら 開くと見つけることできます。

4
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
2