You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/01/14 06:44:02 UTC

[GitHub] dpogue opened a new issue #407: [ANNOUNCEMENT] Status of Xcode 10 support

dpogue opened a new issue #407: [ANNOUNCEMENT] Status of Xcode 10 support
URL: 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:
      ```json
      "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"
   
     <details><summary>Xcode example</summary>
     <img src="https://user-images.githubusercontent.com/781366/45737593-f7e30780-bbf6-11e8-86f8-207dd596ad36.png" alt="Workspace Settings is under the File menu">
     <img src="https://user-images.githubusercontent.com/781366/45737603-fc0f2500-bbf6-11e8-84c9-8dcb17e7c691.png" alt="Change the Build System option to Legacy Build System">
   
     Thanks [**kitolog**](https://github.com/apache/cordova-ios/issues/412#issuecomment-422689481) for the screenshots!
     </details>
   
   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).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org