I have developed an ionic app that is for Android and iOS. When I try to submit the application to iOS I always receive the same error.
I searched in my entire project and I can't find any reference to UIWebView.
I have followed this link to update all my plugins.
I added this code to my config.xml:
<preference name="WKWebViewOnly" value="true" />
<feature name="CDVWKWebViewEngine">
<param name="ios-package" value="CDVWKWebViewEngine" />
</feature>
<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
I updated my cordova and my ionic versions: cordova version - 9.0.0 (cordova-lib@9.0.1) ionic version - 6.10.1
I've tried several tutorials like the ones on these links and others:
https://ionicframework.com/blog/understanding-itms-90809-uiwebview-api-deprecation/ https://mobilefirstplatform.ibmcloud.com/blog/2020/01/27/Removal-of-UIWebview/
But whenever I submit the application to Apple, it gets rejected because of this error.
What can I do to remove UIWebView or get my application approved?
Thanks
Update:
Ionic:
Ionic CLI : 6.10.1 (/usr/local/lib/node_modules/@ionic/cli) Ionic Framework : @ionic/angular 4.10.2 @angular-devkit/build-angular : 0.13.9 @angular-devkit/schematics : 7.2.4 @angular/cli : 7.3.8 @ionic/angular-toolkit : 1.4.1
Capacitor:
Capacitor CLI : 1.5.2 @capacitor/core : 1.0.0-beta.19
Cordova:
Cordova CLI : 9.0.0 (cordova-lib@9.0.1) Cordova Platforms : ios 5.1.1 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 16 other plugins)
Utility:
cordova-res : not installed native-run : 1.0.0
System:
ios-sim : 8.0.2 NodeJS : v12.18.1 (/usr/local/bin/node) npm : 6.14.5 OS : macOS Catalina Xcode : Xcode 11.5 Build version 11E608c
Updateing my question using @Harish answer
However I still get the same error