You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/10/27 23:31:20 UTC

[GitHub] [cordova-ios] breautek edited a comment on issue #1013: Issue when compiling app for ios on mac made on Ubuntu

breautek edited a comment on issue #1013:
URL: https://github.com/apache/cordova-ios/issues/1013#issuecomment-717600777


   > I get error on mac when compiling files from ubuntu.
   
   You can't just simply transfer files from one machine to another, especially cross OS. Doing so would bring over NPM dependencies and native binaries that are not for your target platform.
   
   You can still share your repo cross OS, but the following directories should be ignored from your version control:
   - node_modules
   - platforms
   - plugins
   
   On every machine that you clone your project, you should run `npm install` to install all the dependencies (including any potential native dependencies). Then you should run `cordova platform add ios`. This will configure the iOS project properly on your mac. The platform and all plugins will be restored based on what is inside your `package.json` file (or `config.xml`)
   
   If this doesn't solve your problem, then you will need to give us more details including cordova version and the actual error message. Please let us know. The output of `cordova info` command will tell us nearly everything that we need to know.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



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