Hakob Khurshudyan
Hakob Khurshudyan

Reputation: 25

Ionic 4 build doesn't working on ios 10.3

“I’m using ionic 4 up, and want to support ios 10.3 fully. But unfortunatly build doesn't work on ios 10.3 but it works fine on 12.2”

Upvotes: 1

Views: 564

Answers (2)

Paolo Sanchi
Paolo Sanchi

Reputation: 821

Steps to make ionic 4 work on ios 10.3, Xcode 10.1

in config.xml target 10.3

<platform name="ios">
    <preference name="deployment-target" value="10.3" />
    ...

replace the cordova-plugin-ionic-webview version to 2.5.3 with the following commands

ionic cordova plugin rm cordova-plugin-ionic-webview
ionic cordova plugin add [email protected]

build the workspapce

ionic cordova prepare ios

in xcode open the workspace file (NOT the .xccodeproj)

projectname.xcworkspace

Make sure that the Deployment Target is set to 10.3

Select the Legacy Build System

File -> Workspace Settings -> Shared Workspace Settings -> Build System -> Legacy Build System

The issue is that they dropped the support for ios 10:

https://forum.ionicframework.com/t/ionic-webview-plugin-version-compatibility/151218/4

Upvotes: 0

Shriniwas b
Shriniwas b

Reputation: 336

I was facing the same issue. This issue appears in iOS 10.3 because of splash screen and version of WKwebview plugin.

I did the following steps,

  1. Downgrade cordova-plugin-ionic-webview to 2.3

  2. Change in config.xml

  3. In app.component.ts

    setTimeout(() => { this.splashScreen.hide(); }, 1000);

Upvotes: 1

Related Questions