-
Notifications
You must be signed in to change notification settings - Fork 994
Description
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"
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 ([email protected]).