Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4.5 doesn't find deprecated functions

my problem is that i can't visualize deprecated warning in xcode 4.5. like viewDidUnload or presentModalViewController. I checked the flag "Warn About Deprecated Functions" and is correct (YES). I tried to create e new project and copies all files, but i get the same result. I tried to building with two available compiler LLVM GCC4.2 and Apple LLVM 4.1 The strange thing is that other project has found all deprecated functions correctly. Any idea?

Thanks

like image 206
Alex Avatar asked Sep 24 '12 11:09

Alex


1 Answers

It seems that these warnings are based on your deployment target. (And not the base SDK, which is what I expected.) This seems like a wise choice, since in order to get rid of the warnings, there's a good chance you'll need to use newer methods that didn't exist yet in the older SDK.

So if you want to make sure you're seeing every deprecation warning, select your target in the Targets list, and set the Deployment Target to the latest version. Do a build or choose Analyze from the Product menu, and you'll see all the warnings.

Deployment Target setting in Xcode

like image 75
robotspacer Avatar answered Oct 28 '22 14:10

robotspacer