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/26 23:22:48 UTC

[GitHub] l3ender opened a new issue #506: Generated XCode project doesn't have the correct configuration settings

l3ender opened a new issue #506: Generated XCode project doesn't have the correct configuration settings
URL: https://github.com/apache/cordova-ios/issues/506
 
 
   The command `cordova platform add ios` generates an XCode workspace (if it doesn't exist), but the workspace won't have settings that are configured in a `build.json`.
   
   For example, I run the following commands:
   ```
   cordova platform add ios
   cordova run ios --buildConfig build.json
   ```
   
   Here is my `build.json`:
   ```
   "ios": {
       "debug": {
         ...
         "buildFlag": [
           "-UseModernBuildSystem=0",
           "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=YES"
         ]
       }
   }
   ```
   
   This command allows you to run the iOS app on device/simulator, and it will correctly build/compile based on properties in the `buildConfig` file. If I now use XCode to open the workspace that was generated by `cordova platform add ios`, the workspace that does not have the same workspace settings configured (in my scenario, `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` is not configured). Any settings will need to be manually configured in XCode if I want to open the project in XCode and run the app from there.
   
   I think expected behavior would be that if I run the app from the Cordova CLI OR have the CLI generate an XCode workspace and run the app from there, the app should react the same.

----------------------------------------------------------------
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