TestFlight提交遇ITMS-90809警告:未用UIWebView却触发废弃API提示
Hey there, I’ve dealt with this exact warning a few times, so let’s break down what’s going on and how to fix it:
First, understand the root cause
Even though your app doesn’t directly use UIWebView, the warning pops up because some of your third-party Pods are still embedding references to UIWebView under the hood. From your investigation, FirebaseMLCommon, Crashlytics (the old Fabric version), and GoogleMobileVision are the culprits here.
Here’s what you should do next:
Migrate away from deprecated libraries first
- The old Fabric/Crashlytics is no longer supported—Google has moved Crashlytics into Firebase. You should replace
pod 'Fabric'andpod 'Crashlytics'withpod 'Firebase/Crashlytics'(make sure you’ve set up Firebase correctly in your project first). The new Firebase Crashlytics version removes UIWebView references. - Firebase ML Vision has been replaced by Google’s ML Kit. The old
Firebase/MLVisionandFirebase/MLVisionTextModelare deprecated. Switch to the new ML Kit text recognition pods, likepod 'GoogleMLKit/TextRecognition'—these don’t rely on UIWebView anymore.
- The old Fabric/Crashlytics is no longer supported—Google has moved Crashlytics into Firebase. You should replace
Check for updated Pod versions if migration isn’t immediate
- Run
pod outdatedto see if any of your remaining Pods have newer releases that fix the UIWebView issue. For actively maintained libraries, Google might have already pushed fixes. - You can double-check the references with this terminal command in your project root:
This will show exactly where the UIWebView strings are hiding in your Pods.grep -r "UIWebView" ./Pods
- Run
Should you wait for Google to fix it?
- For deprecated libraries (like old ML Vision and Fabric Crashlytics), Google won’t release fixes—they’re pushing developers to use the newer replacements. Waiting here won’t help; you need to migrate.
- For any actively maintained Pods that still have UIWebView references, check their GitHub repos or release notes. If a fix is already out, update immediately. If not, you might need to monitor for updates, but keep in mind Apple will eventually block apps with UIWebView entirely, so migration is the safer long-term bet.
A quick note on submission
Right now, Apple still accepts submissions with this warning, but it’s a clear sign you need to address this soon. Don’t wait until they start rejecting apps outright!
内容的提问来源于stack exchange,提问作者Nick

