簡體   English   中英

通過iOS api命令創建phonegap應用程序時出錯

[英]getting error while creating phonegap app through iOS api command

我是phonegap的新手,嘗試在Mac機器上安裝它,但出現錯誤。 我正在跟蹤此鏈接作為參考。

這是我在Mac機器上運行的代碼。

./create ~/desktop/hello com.test.hello hello and i am getting error as:

./create: line 66: dirname: command not found
/Users/administrator/Desktop/phonegap-2.9.0/lib/ios/bin/replaces: line 28: sed: command not found
/Users/administrator/Desktop/phonegap-2.9.0/lib/ios/bin/replaces: line 28: sed: command not found
/Users/administrator/Desktop/phonegap-2.9.0/lib/ios/bin/replaces: line 28: sed: command not found
/Users/administrator/Desktop/phonegap-2.9.0/lib/ios/bin/replaces: line 28: sed: command not found
/Users/administrator/Desktop/phonegap-2.9.0/lib/ios/bin/replaces: line 28: sed: command not found
/Users/administrator/Desktop/phonegap-2.9.0/lib/ios/bin/replaces: line 28: sed: command not found
/Users/administrator/Desktop/phonegap-2.9.0/lib/ios/bin/replaces: line 28: sed: command not found
/Users/administrator/Desktop/phonegap-2.9.0/lib/ios/bin/replaces: line 28: sed: command not found
/Users/administrator/Desktop/phonegap-2.9.0/lib/ios/bin/replaces: line 28: sed: command not found
./create: /Users/administrator/Desktop/phonegap-2.9.0/lib/ios/bin/update_cordova_subproject: /usr/bin/python: bad interpreter: No such file or directory

雖然hello.xcodeproj是在給定路徑下創建的,但是當我嘗試在Xcode中打開它時出現此錯誤:

Project /Users/administrator/Desktop/hello/hello.xcodeproj cannot be opened because the project file cannot be parsed.

任何幫助將不勝感激。

似乎phonegap未正確安裝。 最簡單的方法是先從nodejs.org下載node-js,然后使用其程序包管理器安裝phonegap。

sudo npm install -g phonegap

安裝phonegap之后,您可以使用

phonegap local create com.test.hello hello

初始化項目

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM