Sychronous wrapper around UIApplication.openURL:options:completion:
That code should work, but blocking the main thread is never a good idea. That's why the method was changed in the first place. 

I suggest a deeper refactor of your code so that you use the new async method with completion handler as intended.