Anyone getting BUG IN CLIENT OF UIKIT: The caller of UIApplication.openURL(:) needs to migrate... with Python webbrowser in a IOS Kivy app ? #140971
Unanswered
Iji69
asked this question in
Programming Help
Replies: 2 comments
|
This looks like the warning is coming from the iOS/Kivy layer rather than from "webbrowser.open()" itself. "UIApplication.openURL" was deprecated by Apple, so if Kivy or one of its iOS dependencies is still calling it, updating the Kivy/Kivy-iOS version and rebuilding the app would be the first thing I'd try. If the warning remains, check which Kivy-iOS dependency is making the deprecated call. |
0 replies
Hey, here’s exactly how to fix it:At the very top of your main.py, remove the normal import webbrowser and paste this instead: Then find every place where you have:
and replace it with:
That’s it. No need for webbrowser anymore.
Hope it help you ❤️ |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Body
Hi everyone,
If you're encountering the following error in Xcode while executing a simple
webbrowser.open()command in your Python file, you're in the right place:"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)."
This issue arises because, starting from iOS 18, the
UIApplication.openURL(:)method has been deprecated. If you created your project, dependencies, and the kivy-ios folder before iOS 18, every time you try to open a URL, the deprecated method will be called.To resolve this issue without rebuilding the entire project and waiting for the kivy-ios toolchain to be updated, simply follow these steps:
At the very top of your main.py file remplace
import webbrowserby :Then replace all your
webbrowser.open(url)commands byopen_url(url)You no longer need webbrowser.
Hope it helped.
Guidelines
All reactions