App crashing immediately on start up, on device only

前端 未结 2 401
暖寄归人
暖寄归人 2021-01-20 01:17

I\'m trying to figure out why an app I\'m developing has started crashing immediately when running it on my device (an iPhone 4 running iOS 6.1). I have been working on this

2条回答
  •  萌比男神i
    2021-01-20 01:23

    You need to give some more code or tell what does your app do on startup.

    But its clear from the crash logs that the Thread0 that main UI thread has been killed. This could be because on device there is a process called watchdog, it kills any processes which seem dubious. like take too much memory or take take too much time to show first screen on app startup & other things which "Apple" thinks would affect user experience. So...

提交回复
热议问题