【发布时间】:2013-08-23 20:26:43
【问题描述】:
我正在使用 Xcode 4.5 和 iOS 模拟器版本 6*。我在我的 Xcode 项目中添加了图像,但是当我模拟 iPhone 时,它们没有出现。我在 syslog 中看到以下内容:
SpringBoard[33587] <Error>: CGContextDrawImage: invalid context 0x0. This is a serious error. This application, or a library it uses, is using an invalid context and is thereby contributing to an overall degradation of system stability and reliability. This notice is a courtesy: please fix this problem. It will become a fatal error in an upcoming update.
Aug 23 15:04:18 new-host-22.home SpringBoard[28968] <Warning>: No file exists for default image of name starting_image_i5_retina
Aug 23 15:04:20 new-host-22.home[28982] <Notice>: BUG in libdispatch: 12E55 - 866 - 0x2
Aug 23 15:04:20 new-host-22.home[28982] <Notice>: BUG in libdispatch client: kevent[EVFILT_VNODE] add: "Bad file
不知道发生了什么。我已尝试删除应用程序、清理构建等。
【问题讨论】:
-
这个问题似乎是题外话,因为它是关于 NDA 下的 Xcode 5(请使用 Apple 论坛)
-
对不起 - 它也发生在 xCode 4 中 - 刚刚确认
-
您在何时何地绘制上下文?您是否检查过您的图片是否已复制到捆绑包中?
-
所以它以前工作过,现在停止工作了?你是如何加载图像的?
-
你确定你的项目中有 1x 和 2x 图像吗?
标签: ios objective-c xcode ios-simulator