: ImageIO: PNG invalid PNG file: extra chunks between iDOT and IDAT

后端 未结 4 832
囚心锁ツ
囚心锁ツ 2021-01-11 19:44

Just got this funny looking error in my swift project debugger.

There is probably an invalid name of an image somewhere, but I am not sure what extra chunks b

4条回答
  •  醉酒成梦
    2021-01-11 20:14

    This issue is completely random and happened to me too with a few images. Probably another Xcode bug.

    1. My image is called "back2@2x.png"
    2. I renamed it to "back2.png"
    3. Ran the project (the image will appear stretched)
    4. Changed it back to "back2@2x.png"
    5. Ran project
    6. FIXED?!

    Good-luck hope it helps!

提交回复
热议问题