Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provokes Apple Rejection with issue: ITMS-90809: Deprecated API Usage #132

Open
pictureframing opened this issue May 6, 2020 · 12 comments

Comments

@pictureframing
Copy link

Obviously provokes a rejection when uploading to Apple AppStore with the message:

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).

Running a search for "UIWebView" in the Pods (grep -r UIWebView ios/Pods/)
gives result that FirebaseMLCommon and GoogleMobileVision use UIWebView.

Problem is resolved when removing flutter_qr_mobile_vision from packages, deleting pods and running pod update.

Using qr_mobile_vision 1.0.1+1

@rmtmckenzie
Copy link
Owner

The whole point of the 1.* release was to move to firebase and stop using deprecated APIs. My app uses the package, was approved, and grep returns nothing for UIWebView.

Try doing a full clean and pod update in the iOS folder if you've updated from an older version, sometimes cocoapods leaves a bunch of unused stuff lying around.

@pictureframing
Copy link
Author

Im aware of that, but I tried everything. I can't get it going. I even created a completely new flutter project - no other packages included - tried grep: no result. Then added the qr_mobile_vision ^1.0.1+1 package to pubspec.yaml, tried grep again, now it returns:

grep -r UIWebView ios/Pods/ Binary file ios/Pods//FirebaseMLCommon/Frameworks/FirebaseMLCommon.framework/FirebaseMLCommon matches Binary file ios/Pods//GoogleMobileVision/Detector/Frameworks/GoogleMobileVision.framework/GoogleMobileVision matches

@Noninus
Copy link

Noninus commented May 7, 2020

@pictureframing same problem here. Tried everything. My grep found this too.

@rmtmckenzie
Copy link
Owner

rmtmckenzie commented May 7, 2020

Okay, I managed to get my env so that it had the old pods, then updated.

cd ios
pod cache clean --all
pod repo update
pod update
cd ..
flutter clean
flutter build ios
grep -r IUWebView ios/Pods

Unfortunately cocoapods is... a bit temperamental sometimes, so doing that forces it to reset. I think pod repo update is the important part of that but if you do all of it you should be good.

@Noninus
Copy link

Noninus commented May 8, 2020

@rmtmckenzie I followed all yours steps and tried to upload the app to appconnect, but i still getting ITMS-90809: Deprecated API Usage

Edit:
My grep -r IUWebView ios/Pods don't find anything, but when i upload app to store i receive the e-mail:
ITMS-90809: Deprecated API Usage - App updates that use UIWebView will no longer be accepted as of December 2020. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview).

@rmtmckenzie
Copy link
Owner

@Noninus that's really strange. Maybe upload your podfile.lock, then I can see why it might be depending on old versions still.

@athlona64
Copy link

not work because i use firebase auth same is conflict version firebasecore how to solve ?

@booooza
Copy link
Contributor

booooza commented May 14, 2020

What is your targeted iOS platform in ios/Podfile? Switching from 8.0 to 9.0 installs 6.x versions of firebase packages (e.g. Firebase/MLVision 6.24.0 instead of 5.11.0 before) for my project (there are no other dependencies on Firebase).

@veeyaarVR
Copy link

@rmtmckenzie even I am facing the same issue even after updating it to qr_mobile_vision ^1.0.1+1
did someone actually solved this issue by updating the package?

@imkarthikb
Copy link

imkarthikb commented Jun 6, 2020

What is your targeted iOS platform in ios/Podfile? Switching from 8.0 to 9.0 installs 6.x versions of firebase packages (e.g. Firebase/MLVision 6.24.0 instead of 5.11.0 before) for my project (there are no other dependencies on Firebase).

@booooza's comment put us in right direction. I updated the IOS deployment target version from 8.0 to 9.0 and deleted the Pods and Podfile.lock files and did pod install where we can see firebase 6.26.0 version getting installed, and also after running flutter build ios the grep doesn't return anything and the app gets uploaded successfully.

cd ios
rm -rf Pods
rm -rf Podfile.lock
pod install
cd ..
flutter clean
flutter build ios
grep -r UIWebView ios/Pods

@rmtmckenzie
Copy link
Owner

Oh interesting, I didn't realize the firebase library depended on iOS deployment version. I'll keep this issue open as a reminder to add that to the documentation for this plugin.

@hrshs
Copy link

hrshs commented Jul 11, 2020

I set the deployment target version from 8.0 to 9.0 ann then run these commands

Okay, I managed to get my env so that it had the old pods, then updated.

cd ios
pod cache clean --all
pod repo update
pod update
cd ..
flutter clean
flutter build ios
grep -r IUWebView ios/Pods

Unfortunately cocoapods is... a bit temperamental sometimes, so doing that forces it to reset. I think pod repo update is the important part of that but if you do all of it you should be good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants