【问题标题】:iOS Simulator for Xcode 4.5 not copying Resources overXcode 4.5 的 iOS 模拟器不复制资源
【发布时间】: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


【解决方案1】:

转到目标下的构建阶段并转到“复制捆绑资源”并单击加号按钮并添加文件,清理您的构建,删除应用程序,然后在 xcode 中运行它,文件应该在那里。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-09-21
    • 2012-09-10
    • 1970-01-01
    • 1970-01-01
    • 2012-09-19
    • 1970-01-01
    相关资源
    最近更新 更多