如何使用静态分析器
Product
->Analyze


也可以对单个文件使用
Product
->Perform Action
-> Analyze xxx
Xcode13新增的静态检查功能项

定制你的Analyze项
在Build Setting
中搜索Analyze
。
你可以在Analyze During Build
设置为Yes
将静态分析添加到Build
的流程中。
Mode of Analysis for Build
有两种:
- Shallow: 比较快,会忽略跨越多个函数层级的错误。
- deep: 比较慢

开启和关闭你想要的分析项目
