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

前端 未结 4 1986
既然无缘
既然无缘 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:24

    I had the same problem and if you're also following PhoneGap 3.0 The Command Line Interface documentation and created the project by calling

    $ cordova create HelloWorld com.example.hello "Hello World"
    

    Then try removing the whitespace between Hello World.

    $ cordova create HelloWorld com.example.hello "HelloWorld"
    

    The reason it failed when adding android platform is because the command tries to create an Activity with the "Hello World". So removing the whitespace will resolve this issue.

提交回复
热议问题