如何使防崩溃ios应用程序 [英] How to make Crash resistant ios apps

查看:236
本文介绍了如何使防崩溃ios应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在正在编写ios应用程序一段时间。但仍然我的应用程序崩溃定期,它需要时间,使他们非常稳定。我觉得这很烦人。

I'm now programming ios apps for a while. But still my apps crash regularly and it takes time to make them very stable. I find this very annoying.

那么,有没有任何编程模式关于防弹编程ios应用程序?

So, are there any programming patterns regarding crash proof programming ios app?

推荐答案


  • 打开编译器警告。删除所有警告。

  • 运行静态分析器。删除所有警告。

  • 使用GuardMalloc和/或Scribbling运行。

  • 删除所有漏洞

  • 僵尸

  • 写入单元测试

  • 编写高级别的活动错误检测(例如断言)


  • 使用来源控制和持续集成。

  • 阅读。改善。

    • Turn up the compiler warnings. Remove all warnings.
    • Run the static analyzer. Remove all warnings.
    • Run with GuardMalloc and/or Scribbling.
    • Remove all Leaks
    • Remove all Zombies
    • Write Unit Tests
    • Write a high level of live error detection (e.g. assertions)
    • Fix bugs before adding features.
    • Use source control and continuous integration.
    • Read. Improve.
    • 这篇关于如何使防崩溃ios应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆