gpt4 book ai didi

ios - EXC_BAD_ACCESS 与 MKNetworkEngine

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:18:57 24 4
gpt4 key购买 nike

我正在使用 MKNetworkkit 将 XML 数据解析到服务器。在进入成功 block 之前,它会无缘无故地因 EXC_BAD_ACCESS 而崩溃,并且我已经像所有东西一样使用 NSZombieEnabled 完成了。![下面是它所在位置的屏幕截图崩溃。][1][1]:http://i.stack.imgur.com/FL3l9.png

最佳答案

您可能会发现这有助于调试 http://subhb.org/2012/07/02/how-to-debug-exc_bad_access-error/

You will get EXC_BAD_ACCESS error mostly in the following scenarios:

  • You are trying to access an object that is not initialized.
  • You are trying to access an object that no longer exists. Either it’s being released or it’s nil. In ARC mode, make sure you take ownership of the object that you want to use.
  • You are passing an message to an object that the object doesn’t understand. It can also happen for bad typecast.

您是否尝试过在您的代码上运行断点并逐行单步执行您的程序并查看以上是否与结果匹配?

关于ios - EXC_BAD_ACCESS 与 MKNetworkEngine,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27518968/

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