小编cSq*_*rel的帖子

Xcode Instruments错误:"分配跟踪库没有及时加载"

安装Xcode5软件包时出现问题.我正在使用小牛队 - 不确定这是否相关.

无法在模拟器中分配分配.仪器将在模拟器中加载并启动应用程序但不是分配日志,我看到: 截图

有没有人面对这个问题?

profiling instruments ios ios-simulator

11
推荐指数
1
解决办法
2132
查看次数

Core Data抛出NSInternalInconsistencyException"100次尝试后上下文仍然很脏."

我很难找到以下异常的原因.它不时发生,没有明确的模式我可以重复以重现问题.

Terminating app due to uncaught exception 'NSInternalInconsistencyException',
reason: 'Failed to process pending changes before save. 
The context is still dirty after 100 attempts. 
Typically this recursive dirtying is caused by a bad validation method, 
-willSave, or notification handler.'
Run Code Online (Sandbox Code Playgroud)

该应用程序存储和处理跟踪数据并仅处理一个实体:

@interface CSTrackingEntry : NSManagedObject
  @property (nonatomic, retain) NSString * data;
  @property (nonatomic, retain) NSDate * dateRecorded;
@end
Run Code Online (Sandbox Code Playgroud)

CSTracking条目分批读取,创建和删除.每隔几分钟,一批中最多几打.没有注册通知处理程序.

更新:捕获的堆栈

2012-02-03 10:26:11.121 BatteryNurse[17162:1803] An uncaught exception was raised
2012-02-03 10:26:11.121 BatteryNurse[17162:1803] Failed to process pending changes 
before save.  The context is …
Run Code Online (Sandbox Code Playgroud)

macos cocoa exception core-data

0
推荐指数
1
解决办法
1521
查看次数