Cordova CLI: an error occurred during creation of ios sub-project

前端 未结 4 1984
既然无缘
既然无缘 2020-12-19 07:01

I\'ve tested the Cordova 3.0.0 CLI Tool. The command

$ sudo cordova platform add android

was done OK. But i\'ve got error during the comman

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-19 07:31

    Two things that might also help:

    In the above question, one line of command-line code is missing that is clearly shown in the docs:

    $ cordova platform add android
    

    I forgot that too and it caused the error mentioned in the question.

    Also, if you happen like me to have added the plugins before realizing this error, there is no way to fix that except to delete the whole project and rebuilding it.

提交回复
热议问题