ImageIO:CGImageRead_mapData 'open' failed error = 2 on app start [英] ImageIO: CGImageRead_mapData 'open' failed error = 2 on app start

查看:20
本文介绍了ImageIO:CGImageRead_mapData 'open' failed error = 2 on app start的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我制作了一个 iphone 应用程序并使用 5.0 构建它.在 5.0.1 上它工作正常.当我尝试在 5.1 或 5.1.1 上打开应用程序时,应用程序立即崩溃.

i made an iphone app and build it with 5.0. on 5.0.1 it works fine. when i try to open the app on 5.1 or 5.1.1 the app crashes instantly.

在日志中有以下条目:

ImageIO: CGImageRead_mapData 'open' 失败 '/Applications/myApp.app/Icon.png'错误 = 2(没有这样的文件或目录)libpng 错误:未将 IDAT 写入文件

我打开文件夹发现 Icon.png 存在!!

i opened the folder and Icon.png exists!!

希望有人能帮助我:/

推荐答案

请在您的应用程序 plist 文件中的 icon files 行下添加 icon.png.

Please add icon.png in your application plist file under the row icon files.

这篇关于ImageIO:CGImageRead_mapData 'open' failed error = 2 on app start的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆