[ 
https://issues.apache.org/jira/browse/CB-7803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14196170#comment-14196170
 ] 

Edna Morales commented on CB-7803:
----------------------------------

Currently "platform add" does a check to see if the OS supports the platform. 
If it does not, then it just automatically throws an error without attempting 
to add it. I have changed this to just print out a warning message and continue 
with the process. The "prepare" command does not seem to be giving me any 
issues when I add a platform for which the environment is not set up so I think 
it's safe to leave that.

The next issue is to be sure that the platform's "check_reqs" is not getting 
called within the platform's create script. For Android, that was removed 
recently. Windows does not call it and I am currently working on converting the 
iOS bash scripts to nodejs in which I have removed the call to check_reqs. The 
check_reqs shouldn't be necessary until you build and run.

The other thing to consider is what happens when you try to build using the CLI 
for a platform that you don't have the environment set up for. Currently, what 
I have implemented is that it will just end the process with an error on the 
first platform it hits that cannot be built. It will not try to build the 
remaining platforms. For example, if you are on a windows machine and you do 
"build ios android", it's going to error out when it try to build iOS and just 
end the process there. This is to avoid running the after_build hooks and to 
let the user know that they can't build for iOS. The idea there is that the 
user would skip building iOS and just do "build android".

> Add any platform on any workstation OS
> --------------------------------------
>
>                 Key: CB-7803
>                 URL: https://issues.apache.org/jira/browse/CB-7803
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: CLI, CordovaLib
>            Reporter: Edna Morales
>            Assignee: Edna Morales
>            Priority: Minor
>
> You should be able to add any platform to a project while on any desktop OS 
> even if that platform can't be built on that OS. 
> It is understood that you will not be able to build an iOS app while on 
> Windows, nor build a WP8 app while on Linux, etc. If you attempt to build for 
> a non-appropriate platform(s) on your dekstop OS, it will skip that 
> non-appropriate platform(s) with a warning or an error, but not impede the 
> building of the appropriate platforms, nor impede the addition of 
> non-appropriate platforms (i.e., do "cordova platform add wp8" while on OS X).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to