Application.OpenURL works fine in editor but doesn't open the necessary link when I run it on my phone (iOS)

I’m having the same issue.
Im using Unity 2021.3.17 and using Application.OpenURL(url); to open a webpage.
When I run the project through Xcode 15.4 it works fine.
If I run it through Xcode 16.2, it does work and I get the error message:

BUG IN CLIENT OF UIKIT: The caller of UIApplication.openURL(: ) needs to migrate to the non-deprecated UIApplication.open(:options:completionHandler:). Force returning false (NO).

If Application.OpenURL is depreciated, is there another code I could use instead?

Ideally, I don’t want to update my Unity project because that usually creates more issues than it fixes, especially when I’m on a project deadline.
I updated my MacBook to Sequoia recently so I can’t install Xcode 15.4 on it.

Hey sorry to hear that, but I’m afraid updating your engine version is the only solution here. I tried everything possible and finally gave up. Updating it immediately solved it.

Thanks for replying so quick.
That’s a pain! 2022.3.6 is the next LTS version, will it work on that?

Can’t comment on that. But definitely works with 2022.3.48f1. Hope that’s helpful