Bilal
Bilal

Reputation: 19156

Xcode How to check if there is any API used in the whole project which is not available for the current development target

Recently my app was getting crashed on IOS8 because i have used an API which is only available for IOS 9 and above. I am wondering is there anyway to check the whole project and find out if I am using any API which is not available for the current development target. Something like the warnings for the deprecated APIs. Thanks.

Upvotes: 1

Views: 510

Answers (1)

user1118321
user1118321

Reputation: 26395

In order to tell the compiler you want to support an earlier OS, you need to set the SDK to that earlier OS's SDK. If you set the SDK to iOS 8, then any time you use functionality from a later OS, you should get a compiler error.

Upvotes: 1

Related Questions