UIWebView error submiting ionic app to Apple

前端 未结 2 1919
挽巷
挽巷 2021-01-21 11:35

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 pr

相关标签:
2条回答
  • 2021-01-21 12:13
    1. You might be using old ionic version. The version you have pasted in your question is version of Ionic CLI. run "ionic info" in you project folder to see what Ionic framework version you are using.

    2. if you are using ionic framework 3+ version. then install ionic webview plugin by:

      ionic cordova plugin add cordova-plugin-ionic-webview --save

    0 讨论(0)
  • 2021-01-21 12:29

    I have fixed my app for the exact issue recently and Here are the steps I have followed to fix the issue:

    1. Ensure your cordova-plugin-ionic-webview is updated to the latest version 5.0.0. You need to run these two commands to do that.
    ionic cordova plugin remove cordova-plugin-ionic-webview
    ionic cordova plugin add cordova-plugin-ionic-webview@latest
    
    1. Ensure your cordova-ios is updated to the latest version 6.0.0. Run this command to update it.
    npm install cordova-ios@latest --save
    
    1. Check your package.json to see if the versions are updated for both cordova-ios and cordova-plugin-ionic-webview.

    2. Ensure you add WKWebViewOnly preference to config.xml file.

    <platform name="ios">
        <preference name="WKWebViewOnly" value="true" />
        ...
    </platform>
    
    1. This is the most important step. Ensure you remove the ios platform and add it again. Run these commands to remove and add the ios platform.
    ionic cordova platform rm ios
    ionic cordova platform add ios
    

    Now, when you build the ios app and publish it to the app store, you can see the issue will be fixed.

    0 讨论(0)
提交回复
热议问题