Static Analysis in iOS
summary
An open-source static analyzer called Infer static analyzer finds interprocedural bugs in Objective-C and C/C++ such as null dereferences, CoreFoundation memory leaks and retain cycles, and it runs incrementally in CI so changes analyze in seconds to minutes while full codebases scale to millions of lines. A 36k‑line iOS app analyzes in ~3–6 minutes and yields 18 Infer issues plus 31 lint warnings; at Facebook the tool shows a 60% fix rate and the project has ~6,000 GitHub stars.
AI-written summary · about
chapters (13)
- 0:00Introduction to static analysis
- 1:07Why static analysis matters
- 2:34How Infer works technically
- 6:10Infer vs other tools
- 7:15Integration in Facebook workflow
- 8:43Examples of bugs found
- 10:56Retain cycles and memory leaks
- 12:05Lint framework overview
- 13:53Open source adoption
- 15:01Installing and running Infer
- 16:26Case study on xkcd app
- 18:57Future improvements
- 20:05Resources and Q&A
