核心数据信息控制台中运行时出错 [英] Core Data info & error in console at runtime

查看:139
本文介绍了核心数据信息控制台中运行时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在运行时在控制台中遇到了以下消息,我不知道为什么。我搜索无处不在,没有人似乎遇到这样:

I have met the following messages in the console at runtime, and i have no idea why. I have searched everywhere and nobody seems to meet this:


INFO:fetch-response无法打开文件/ Users / userName / Library / Application Simulation / iPhone Simulator / 7.0.3 / Applications / 964A590B-7131-4BAE-958B-1783BEC193EF / Library / Caches / userName.AppName / fsCachedData / 2F1A8708-35A9-491E-9C21-154BA428CA10。 Errno:2

INFO: fetch-response is unable to open the file /Users/userName/Library/Application Support/iPhone Simulator/7.0.3/Applications/964A590B-7131-4BAE-958B-1783BEC193EF/Library/Caches/userName.AppName/fsCachedData/2F1A8708-35A9-491E-9C21-154BA428CA10. Errno: 2

错误:无法从FS:/ Users / userName / Library / Application Support / iPhone Simulator / 7.0.3 / Applications / 964A590B-7131 -4BAE-958B-1783BEC193EF / Library / Caches / userName.AppName / fsCachedData / 83A968D1-0A2B-4D20-97D5-487A876649DC,errno:22

ERROR: failed to mmap cache data from FS: /Users/userName/Library/Application Support/iPhone Simulator/7.0.3/Applications/964A590B-7131-4BAE-958B-1783BEC193EF/Library/Caches/userName.AppName/fsCachedData/83A968D1-0A2B-4D20-97D5-487A876649DC, errno:22

它似乎并不影响执行,但我认为这不是一个好的迹象。我使用Core Data和一个定时器,它经常从服务器更新数据库。这些消息与更新同步显示,但不系统地显示。只有一个时,INFO或错误。在模拟器中重置内容和设置没有解决问题。

It does not seem to affect the execution though, but I suppose it is not a good sign. I am using Core Data with a timer which frequently updates the database from a server. These messages appear synchronously with the updates, but not systematically. Only one at the time, the "INFO" or the "ERROR". Reset Content and Settings in the Simulator did not solve the problem.

有没有人对这些消息的含义有任何想法?

Does anyone have any idea about the meaning of these messages?

推荐答案

在我的设备上运行我正在建立的应用程序时,我遇到了这个问题。它已经工作完美的几个星期,然后突然这个错误。我想,这是由于设备上缺少可用的内存。我使用一个小的应用程序调用系统状态,允许您查看内存统计数据并释放任何旧的未使用的内存。我只得到这个错误在Xcode当我有我的设备上少于5%的可用内存。因此,它无法加载应用程序请求的缓存文件,因此错误。关闭所有多任务应用程序,重新启动设备或获取应用程序,释放内存。

I experienced this when running on my device with an app I am building. It has worked perfect for weeks and then all of a sudden this error. I figured out that it is due to a lack of memory available on the device. I use a little app call "System Status" that allows you to view the memory stats and release any old unused memory. I only get this error in Xcode when I have less than 5% available memory on my device. Therefore it cannot load the cache file the app is request, hence the error. Either close all your multitasking apps and restart your device or get the app and free you memory.

这篇关于核心数据信息控制台中运行时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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