English 中文(简体)
如何减少坠毁?
原标题:iOS how to debug a crash?
  • 时间:2011-11-11 13:03:01
  •  标签:
  • ios

我的坠毁原因不明,我最后用这一标志:

MyProj[9442:707] - [NSDecimalNumber length]:未经承认的甄选者被送至0x2e6690

我是否可以得到更多细节? 9442:707的含义是什么?

http://www.ohchr.org。

在我的法典中,我添加了以下痕迹:

NSLog(@"KEYS:%@", myKeys);
NSLog(@"KEYS ORDERED:%@", [myKeys sortedArrayUsingSelector:@selector(compare:)]);

但第二线坠毁。 我的“宽度”错误似乎来自此线(我没有在任何地方使用[几长])。

2011-11-11 14:20:18.936 MyProj[9570:707] KEYS:(
  330,
  359,
  362,
  367,
  352,
  351,
  364,
  331,
  350
)

... then crash... with above error
最佳回答

The iOS debugger is rather unclear in describing the exact problem sometimes. Yet in your case it should be clear. [NSDecimalNumber length] cannot be executed because the method length us unclear to it.

Ref:

请找到你使用长度功能的线,将其改为行之有效的线索。 在您的提问中,我们可以更确切地说几句。

问题回答

9442:707是关于这一进程的信息,它不会在这里帮助你。

在你的法典中有些地方,你向国家测量局发出长篇信息。

您能否使坠机发生? 如果是,在坠毁时检查电线,应该指出你有权处理该问题。

If not - if your code base isn t too large you could search your code for "length" and inspect anywhere you re sending the length message to see if it could be sending it to the wrong type of object.





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签