Adding a compile-time check to the deprecated method handling for iOS 7-only targets