Showing all deprecated warnings in Xcode

Viewed 2560

How do I show all deprecated warnings in Xcode for my iOS app?

Clicking on the Issue Navigator > Buildtime > then scrolling down to Deprecations only seems to show deprecations for opened or previously-opened files. When I open more files, more deprecations appear. I'd like to see a complete view of all deprecated methods across all files.

3 Answers

According to an answer in Apple forums, which I myself have verified.

If your Deployment target is older than the version of iOS that the API was deprected in (so if your deployment targer is iOS 8.0 or lower), the compiler won't give you deprecation warnings for that API.

So, do what this user answers, and select latest OS version is available in Project Files -> General -> Deployment Target

As many of you worked with issue navigator but do not aware where it exactly and how you can find the deprecated methods so let me show you by screenshot

enter image description here

enter image description here

Navigate to Issue Navigator. In the Issue navigator, type "deprecated" in the below filter. Now you will be able to see all (and only) deprecated Buildtime warnings.

Related