user2181948
user2181948

Reputation: 1938

Showing all deprecated warnings in Xcode

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.

Upvotes: 4

Views: 5128

Answers (3)

Anita Nagori
Anita Nagori

Reputation: 747

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

Upvotes: 4

kikeenrique
kikeenrique

Reputation: 2669

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

Upvotes: 2

Karthick Ramesh
Karthick Ramesh

Reputation: 1486

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.

Upvotes: 0

Related Questions