iPhone Crash with “No Backtrace”

前端 未结 4 799
失恋的感觉
失恋的感觉 2021-01-20 17:13

My iPhone app was recently rejected from the App Store \"because it crashes on launch\". However, I cannot reproduce this crash. The app works perfectly on both the simulato

4条回答
  •  死守一世寂寞
    2021-01-20 17:49

    A segfault is unlikely to be a build error. To reproduce this problem, try clearing out any saved information on the iPhone simulator before running the project; it is possible that you are assuming the existence of certain entries in NSUserDefaults that are present on your own iPhone, but which would not be available on a default installation. If that doesn't reproduce the problem, then you should create unit tests for each of your components, ruling out each component at a time as the cause of failure. Eventually, you will have ruled out every cause of failure except for the true cause of failure.

提交回复
热议问题