iOS app crashes, xcode says 'Lost connection to X's iPhone' when debugging

后端 未结 8 2092
有刺的猬
有刺的猬 2020-12-05 12:36

My app crashes and I need some advice to find and fix the problem. It is not a device or cable problem because it happens with all devices and not only when debugging. Xcode

8条回答
  •  温柔的废话
    2020-12-05 12:57

    Yes, it is a memory issue, or you have opened too many threads. I have met this problem before. The problem I met like this:

    When I delete a photo, which may cost about 0.2s, I would like to show a toast(MBProgressHUD) to user, and GCD to hide the toast after deleting.
    When I tried to delete 100 photos, it is okay. However, when I tried to delete 200 photos, the app might be crashed. When I tried to delete 300 photos, the iPhone always restart itself.

提交回复
热议问题