NSURLConnection crashing under 10.5.7

后端 未结 8 1706
太阳男子
太阳男子 2020-12-28 21:30

I have a little app that downloads stock prices and was working perfectly (for years) until my recent upgrade to 10.5.7. After the upgrade, the program would crash on this

相关标签:
8条回答
  • 2020-12-28 22:02

    We're seeing the same issue, using both the non-deprecated stringWithContentsOfURL and sendSynchronousRequest (in different places). We see the same type of behavior; the call can work fine for many iterations, and then will randomly fail (on identical requests).

    Given that the synchronous calls are built on top of the async mechanism, there's no reason these calls shouldn't still be working properly. Unfortunately, we don't have a solution yet either.

    0 讨论(0)
  • 2020-12-28 22:15

    Crashes in objc_msgSend are usually due to improper object life-cycle (i.e. object has been released and it's being sent a message).

    Run your code with NSZombieEnabled to figure out if this is indeed your problem and to see which object is being release early.

    0 讨论(0)
提交回复
热议问题