1

Problem:
Current Base SDK is 9.1. My project Target Version is 7.0.
Xcode 7 doesn't show any warnings when new API is used. It means that when I use API with version > 7.0, then app crashes on devices with iOS 7.0.
I believe that it's impossible to remember availability characteristics for every method and class in SDK.
Manual checking for methods availability isn't very convenient way as well.
So I am looking for automatic tool which will warn me about new API usage.

What I tried:
I found a lot of similar questions (1, 2, 3). But all of them are outdated (2010 - 2013), so no one solution works in Xcode 7.

Question:
Is there any way to show warning for new API usage in Xcode 7?

Community
  • 1
  • 1
Vlad Papko
  • 13,184
  • 4
  • 41
  • 57

1 Answers1

1

I have searched for something similar.

What I found were two options:

  1. Deploymate. This is an app that does static code analysis and searches for uses of APIs introduced after your minimum target iOS version. Deploymate
  2. Making the compiler create deprecated warnings for uses of APIs that were not yet existent in the target iOS version. You can read more here

We are going with option 1.

Community
  • 1
  • 1