我在Stackoverflow上找到了一个与Addresponse - adding to memory only
相关的解决方案,但我的应用程序仍然报告它甚至做了推荐。
Addresponse - adding to memory only (XCode)
AppDelegate.m
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
...
// Enable Cache System
NSURLCache *cache = [[NSURLCache alloc] initWithMemoryCapacity:4*1024*1024 diskCapacity:32*1024*1024 diskPath:nil];
[NSURLCache setSharedURLCache:cache];
...
}
日志:
2013-05-22 19:44:21.648 Setparty[12912:380f] ADDRESPONSE - ADDING TO MEMORY ONLY: http://SERVER/api/1.0/appimages/?view=1
2013-05-22 19:44:21.667 Setparty[12912:380f] ADDRESPONSE - ADDING TO MEMORY ONLY: http://SERVER/api/1.0/appimages/?view=2
2013-05-22 19:44:21.689 Setparty[12912:380f] ADDRESPONSE - ADDING TO MEMORY ONLY: http://itunes.apple.com/lookup/?id=634476579
有没有人知道这些日志可能有什么关系?
答案 0 :(得分:4)
这是来自框架的错误消息。最好的猜测,您在磁盘上的路径是nil
,因此,该错误消息告诉您不会将任何内容写入磁盘。