我是phonegap的新手,我试图将它安装在我的mac机器上,但出现错误。我正在关注this link作为参考。通过iOS api命令创建phonegap应用程序时出现错误
这是我的代码,我在我的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.
任何帮助将不胜感激。
不要问我们遵循的指导。相反,发布给你的问题的确切命令。 – fedorqui
./create〜/ desktop/hello com.test.hello hello命令给出错误。 – Chomu
phonegap是安装在你的mac吗? – Sport