Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there any reasons you wouldn't want to use the Static Analyzer every time you build your iOS app?

I'm diving into iOS development and I just found out about the Static Analyzer and it's been pointing out all sorts of mistakes I was making in the code. The Static Analyzer doesn't really seem to eat up any extra time when building and so I'm wondering why it isn't enabled by default.

Are there any reasons you wouldn't want to use the Static Analyzer every time you build your iOS app?

Thanks in advance for your help!

like image 576
BeachRunnerFred Avatar asked Dec 17 '22 22:12

BeachRunnerFred


2 Answers

No, I use it all the time. One cannot have enough help tracking down all the bugs :-)

like image 98
AndersK Avatar answered Jan 09 '23 15:01

AndersK


Mostly because it does eat up extra time when you build your app. Your app is probably pretty small or you'd notice the difference. When your app takes 10-20 minutes just to compile, you're more likely to just run static analysis "from time to time." Before you commit is a good time to do it.

like image 32
Rob Napier Avatar answered Jan 09 '23 14:01

Rob Napier