wkwebview
wkwebview
in ,

Breaking changes coming to the iOS WebView in Apache Cordova

This app was built with the iOS 11.1 SDK. Starting March 2019, all iOS apps submitted to the App Store must be built with the iOS 12.1 SDK or later, included in Xcode 10.1 or later.

The App Store Team

If we are using ionic or cordova projects you might be facing this warning while uploading app to the store.

After researching a bit on internet i found no timelines were provided by cordova team yet. I found some workarounds that may help you to get some understanding what is actually going on.

Most important link that talks about this is : https://github.com/apache/cordova-ios/issues/407

A few issues have started to come in regarding the state of Cordova projects on Xcode 10. This is a rough summary of the situation:

Xcode 10 uses a new build system by default (previously available on an opt-in basis in Xcode 9). The cordova-ios project structure is not compatible with this new build system and results in failures.
Officially, we do not claim to support Xcode 10.

Currently the best workaround is to opt-out of the new build system:

If you’re building on the command-line, you can specify –buildFlag=”-UseModernBuildSystem=0″:

Cordova CLI

cordova run ios –buildFlag=’-UseModernBuildSystem=0′
cordova build ios –buildFlag=’-UseModernBuildSystem=0′

Ionic CLI

ionic cordova run ios — –buildFlag=”-UseModernBuildSystem=0″
ionic cordova build ios — –buildFlag=”-UseModernBuildSystem=0″
If you’re building with a build.json config file, you can add the following under the iOS release or debug config:

“buildFlag”: [
“-UseModernBuildSystem=0”
]
If you are opening the project in the Xcode IDE, you need to change the build system in Workspace Settings to “Legacy Build System”

Xcode example
We’re going to investigate what’s required to make cordova-ios compatible with the new build system, and hope to include that in the next major version (cordova-ios@5.0.0).

Author Profile

PREM KUMAR
PREM KUMAR
Hey Its..! Tech Lover , Ionic, Angular, Typescript, Dotnet Core, Node, Like Opencv, AI, ML, Robotics, Iot, Love Music, Cooking, Girls, Innovation

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

What do you think?

401 Points
Upvote Downvote
git pkworlz

Best (and safest) way to merge a git branch into master

hints

What are outlines and how these are used?