Xcode 4.5 的 iOS 模拟器不复制资源

标签 ios objective-c xcode ios-simulator

我正在使用 Xcode 4.5 和 iOS 模拟器版本 6*。我将图像添加到我的 Xcode 项目中,但是当我模拟 iPhone 时,它​​们没有显示。我在系统日志中看到以下内容:

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 

不知道发生了什么。我试过删除应用程序、清理构建等。

最佳答案

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

关于Xcode 4.5 的 iOS 模拟器不复制资源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18411284/

相关文章:

ios - 检查封闭路径内所有点的方法

ios - RACSignal : Why use rac_textSignal a "defer" to return a RACSignal to self?

ios - 如何在不越狱手机的情况下使用私有(private) api 获取传入和传出的短信/iMessage 计数

ios - 从后台任务启动 iOS 7 中的位置管理器

ios - UIScrollView中如何处理大图

ios - 选择时 UISearchBar 的宽度和位置会发生变化

ios - 如何使用 nsjsonserilization 添加登录 api?

objective-c - 从 NSThread 调用一个带有多个参数的方法

ios - UISearchController searchBar showsCancelButton 未被尊重

ios - uiViewController 中的 uiTableView : something's missing