Forum Archive

Python3 Xcode template broken because of deprecated UIWebView

ruohola

I'm using the experimental Python3 Xcode template found from this thread and trying to publish my game to the AppStore. I've succesfully tackled all code signing issues by replacing all of the #import 'pythonista' comments in the Py3Kit.framework with #LyX as was instructed at the bottom of that thread.

But now I am getting these issues:

ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview).

Though you are not required to fix the following issues, we wanted to make you aware of them:

ITMS-90683: Missing Purpose String in Info.plist - Your app's code references one or more APIs that access sensitive user data. The app's Info.plist file should contain a NSBluetoothAlwaysUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. Starting Spring 2019, all apps submitted to the App Store that access user data are required to include a purpose string. If you're using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. You can contact the developer of the library or SDK and request they release a version of their code that doesn't contain the APIs. Learn more (https://developer.apple.com/documentation/uikit/core_app/protecting_the_user_s_privacy).

The first one is totally uncircumventable because the call to UIWebView happens in the Py3Kit binary file. Is there any plans update it to not use a deprecated API or to possibly release the source of it to the community so that someone else can fix it?

samaklis

Same issue here... I am under the impression that Pythonista may be an abandoned project...

JonB

See the other thread... Just replace all UIWebView with something else of the same length with a hex editor.

Someone posted a link to an updated template that worked (just don't use webview, obviously)

cvp

See end of this thread

myrholm

@JonB - Hi Jon. I wonder if you would be willing to elaborate a bit. I am new to Pythonista (and really enjoying it!) but I’m afraid I need a bit more detail to fix the UIWebView challenge.

(The app template, it seems, is no longer available on the other thread, although I was able to use the #LyX solution, but I am now stuck on the UIWebView challenge)

Could you point me to the right direction with a bit more detail?
Many thanks Jon

natelik

I have a similar issue, as of now refreshed the library and checked utilizing grep - R UIWebView * yet issue actually endure.
snaptube vidmate word to pdf