Recently I updated my Xcode to 6.3(sdk iOS8). I am using one API of NSString called "containsString" which is available from iOS 8.0 onwards. But my deployment target is 7.0 and this API is not available on iOS7. App is running fine on iOS8, however it was crashing on iOS7 since it did not find that API.
Now ideally Xcode should have given me warning since the API is not available on deployment target (iOS7).
Is there a way to make xcode give warning or even build error if the API is not supported on minimum supported iOS version?
I would prefer if anyone has way to do it using pre compiled headers.