Changing deprecation warning detection for Apple