Skip to content

[ANNOUNCEMENT] Status of Xcode 10 support #407

@dpogue

Description

@dpogue

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 Workspace Settings is under the File menu Change the Build System option to Legacy Build System

    Thanks kitolog for the screenshots!

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]).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions