4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?