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/08/21 12:47:49 UTC

[GitHub] [cordova-ios] breautek commented on issue #971: Cannot use `cordova platform add ios` on windows - xcode error 66 is returned during the subsequent cordova build on macOS

breautek commented on issue #971:
URL: https://github.com/apache/cordova-ios/issues/971#issuecomment-678272332


   iOS platform and commands are only supported on Macs, as documented [here](https://cordova.apache.org/docs/en/dev/guide/platforms/ios/index.html#requirements-and-support)
   
   However, I think maybe the CLI should actually tell you that if you try to use `cordova platform add ios` in an unsupported environment.
   
   > copying to a mac and building there
   
   It's also not recommended to copy `platforms/` directories in between environments. The same for the `plugins/` directory. These two directories should be ignored in your version control system.
   
   Instead, you can clone your project on the mac environment, then use `cordova platform add ios` to add the ios project. This will also download all the plugins and node_modules required by the ios project & their plugins, some of which may have native binaries that wouldn't be installed correctly if you just simply copied your entire project over.
   
   Hope this helps to not only point out the "what", but also the "why" what you're attempting to do won't work.
   
   > However, I think maybe the CLI should actually tell you that if you try to use `cordova platform add ios` in an unsupported environment.
   
   For this reason, I'll leave the ticket open.


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