gpt4 book ai didi

ios - 为什么 iPhone 5.1 Simulator 提供的调试信息少于 4.3 Simulator?

转载 作者:行者123 更新时间:2023-11-29 13:31:54 26 4
gpt4 key购买 nike

在我的代码中,我犯了一些错误,将 NSNumber 分配给 NSString:

self.totalLikesLabel.text=[user objectForKey:@"totalLikes"];

Comparison of crash information between 5.1 Simulator (top) and 4.3 Simulator (bottom)

当应用程序在上述点崩溃时,5.1 模拟器没有显示我的代码中的哪些行导致崩溃的具体信息。然而,4.3 Simulator 做到了!

在这种情况下,我是否必须在 5.1 模拟器中配置一些设置才能使其像 4.3 一样工作?

最佳答案

1.Go to the breakpoint navigator (left navigation panel 6th one from the left).
2. Click the "+" button at the bottom
3. Select Exception Breakpoint
4. Leave Exception Breakpoint checked
5. In the Exception: field select "Objective-C"
6. In the Break: field select "On Throw"
7. Leave Action: alone (unless you want it to do something)
8. Leave Option: **unchecked**
9. Click "Done"

这应该让您看到比 SIGABRT 多一点的信息。

关于ios - 为什么 iPhone 5.1 Simulator 提供的调试信息少于 4.3 Simulator?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11630576/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com