https://github.com/fastred/Optimizing-Swift-Build-Times
在Xcode中直接看到编译项目的时间
step1:关闭Xcode
step2:打开终端执行
defaults write com.apple.dt.Xcode ShowBuildOperationDuration YES
重启Xcode。all is done
-Xfrontend -warn-long-function-bodies=300
-Xfrontend -warn-long-expression-type-checking=300
Add: