Xcode 4.2 SIGABRT Error

前端 未结 5 1537
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-01 19:17

Everytime I run my app on the iPad simulator, it works flawlessly. But, when I run it on the iPhone simulator, when I click the home button, I get an error in Xcode in my ma

5条回答
  •  日久生厌
    2020-12-01 19:59

    In my case I had some code in viewDidLayoutSubviews, that updated layout and caused viewDidLayoutSubviews to be called again going into an infinite loop. Moving this code solved this error.

    I suppose any infinite loops on the main thread end up being an uncaught exception.

提交回复
热议问题