Bugsense iOS EXC_BAD_ACCESS

发布于 2024-12-15 05:05:06 字数 540 浏览 6 评论 0原文

我试图让 bugsense 在我的 iOS 应用程序中工作,但在初始化 BugSenseCrashController 时,该应用程序因 EXC_BAD_ACCESS 崩溃:

  BugSenseCrashController *crash =
        [BugSenseCrashController sharedInstanceWithBugSenseAPIKey:@"<Your BugSense API Key>"];

我的密钥是正确的,并且我已遵循此处列出的所有说明: bugsense.com/docs/ios" rel="nofollow">http://www.bugsense.com/docs/ios

不知道从这里去哪里。

编辑 我已经更改了代码,因此我没有使用 userDictionary (目前不需要它)。问题仍然存在。

编辑2 看来只有当我在设备(4.3.5)上运行代码而不是在模拟器(4.3)中运行代码时才会发生这种情况。

I'm trying to get bugsense working in my iOS app but the app is crashing with EXC_BAD_ACCESS while initializing the BugSenseCrashController:

  BugSenseCrashController *crash =
        [BugSenseCrashController sharedInstanceWithBugSenseAPIKey:@"<Your BugSense API Key>"];

My key is correct and I've followed all the instructions listed here: http://www.bugsense.com/docs/ios

Not sure where to go from here.

EDIT
I've changed my code so I'm not using userDictionary (don't need it at the moment). Issue still persists.

EDIT2
It seems this is only happening when I run the code on the device (4.3.5) and not in the simulator (4.3).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

撑一把青伞 2024-12-22 05:05:06

设置 NSZombieEnabledMallocStackLogging在调试器中保护 malloc。然后,当您的应用程序崩溃时,在 gdb 控制台中输入以下内容:

(gdb) info malloc-history 0x543216

将 0x543216 替换为导致崩溃的对象的地址,您将获得更有用的堆栈跟踪,它应该可以帮助您查明位置代码中导致问题的确切行。

请参阅本文以获取更详细的说明。

Set NSZombieEnabled, MallocStackLogging, and guard malloc in the debugger. Then, when your App crashes, type this in the gdb console:

(gdb) info malloc-history 0x543216

Replace 0x543216 with the address of the object that caused the crash, and you will get a much more useful stack trace and it should help you pinpoint the exact line in your code that is causing the problem.

See this article for more detailed instructions.

能怎样 2024-12-22 05:05:06

尝试添加以下框架:
1. 系统配置
2.libz.1.2.5

Try adding following frameworks:
1. SystemConfiguration
2. libz.1.2.5

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文