PhoneGap在Mac環境下使用問題小結

PhoneGap在Mac環境下使用問題小結
1,問題一:在執行命令phonegap run ios出現「Cordova needs ios-sim version 1.7 or greater, you have version」
    解決辦法:在命令下運行sudo npm install -g ios-sim

2,問題二:在執行命令phonegap build android出現「Error: ERROR : executing command 'ant', make sure you have ant installed and added to your path.」
    解決辦法:下載apache-ant:http://ant.apache.org/index.html,而後解壓到/usr/local[/usr/local/ant],而後進入這個目錄。
        執行命令:
        export ANT_HOME=/usr/local/ant
        export PATH=$PATH:${ANT_HOME}/bin
        sudo ant -f fetch.xml -Ddest=system[fetch.xml就是當前目錄下面的文件,不會沒有的,能夠參看一下文檔]html

 

http://www.gowhich.com/blog/590android

相關文章
相關標籤/搜索