With the usual disclaimer that using private APIs might cause your app to be rejected: You can suppress the warning with
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wavailability"
…
#pragma clang diagnostic pop
It might also cause crashes or other failures if that function is present in the iOS frameworks, but with different parameters.