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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to