I am very new to iPhone development and I am looking to work with the PhoneGap framework to create iPhone apps. I installed Phonegap on Mac OS X Lion. I got this error in the terminal window for ./create <project_folder_path> <bundle_id> <project_name>
:
我是iPhone开发的新手,我希望使用PhoneGap框架来创建iPhone应用程序。我在Mac OS X Lion上安装了Phonegap。我在./create
./create: No such file or directory
I have searched Google to solve this error, but I can't find any idea from there. Could you please help me solve this issue and run the project? Thanks in advance. Looking forward to your answers.
我搜索过谷歌来解决这个错误,但我从那里找不到任何想法。你能帮我解决这个问题并运行项目吗?提前致谢。期待您的回答。
4 个解决方案
#1
7
You probably need to check your current directory with the pwd
command, which is what the .
is shorthand for. The create
executable sits in the Cordova bin
directory, not your project directory.
您可能需要使用pwd命令检查当前目录,这就是。是简写。 create可执行文件位于Cordova bin目录中,而不是项目目录中。
For example, this site shows the required command line to be (spread across multiple lines for readability):
例如,此站点显示所需的命令行(为了便于阅读,分布在多行中):
./path/to/cordova-ios/bin/create
/path/to/my_new_cordova_project
com.example.cordova_project_name
CordovaProjectName
In other words, create
is separate from your project.
换句话说,create与您的项目是分开的。
The solution is probably to fully specify the path name of create
.
解决方案可能是完全指定create的路径名。
#2
0
./path/to/cordova-ios/bin ./create
~/<project_folder_path> <bundle_id> <project_name>
#3
0
This works for me :
这对我有用:
Download cordova-3.0.0 and put the folder in your document folder. Expand cordova-ios.zip inside.
下载cordova-3.0.0并将文件夹放在文档文件夹中。在里面展开cordova-ios.zip。
Create a folder CordovaTestProject inside your document folder.
在文档文件夹中创建文件夹CordovaTestProject。
Then, open the terminal and try :
然后,打开终端并尝试:
./Documents/cordova-3.0.0/cordova-ios/bin/create /Users/<username>/Documents/CordovaXY/HelloWorld org.apache.cordova.HelloWorld HelloWorld
replace <username> by your username. You can get it with pwd in terminal. In terminal, type "pwd" and you will get your username
用您的用户名替换
#4
0
Make sure that you are inside \phonegap-2.7.0\lib\ios\bin before entering ./create
command. Refer the Blog Tutorial for a simple and straight forward explanation of PhoneGap instalation in Mac for iOS and creating a new project.
在输入./create命令之前,请确保您位于\ phonegap-2.7.0 \ lib \ ios \ bin中。请参阅博客教程,以获得Mac for iOS中PhoneGap安装的简单直接说明并创建新项目。
#1
7
You probably need to check your current directory with the pwd
command, which is what the .
is shorthand for. The create
executable sits in the Cordova bin
directory, not your project directory.
您可能需要使用pwd命令检查当前目录,这就是。是简写。 create可执行文件位于Cordova bin目录中,而不是项目目录中。
For example, this site shows the required command line to be (spread across multiple lines for readability):
例如,此站点显示所需的命令行(为了便于阅读,分布在多行中):
./path/to/cordova-ios/bin/create
/path/to/my_new_cordova_project
com.example.cordova_project_name
CordovaProjectName
In other words, create
is separate from your project.
换句话说,create与您的项目是分开的。
The solution is probably to fully specify the path name of create
.
解决方案可能是完全指定create的路径名。
#2
0
./path/to/cordova-ios/bin ./create
~/<project_folder_path> <bundle_id> <project_name>
#3
0
This works for me :
这对我有用:
Download cordova-3.0.0 and put the folder in your document folder. Expand cordova-ios.zip inside.
下载cordova-3.0.0并将文件夹放在文档文件夹中。在里面展开cordova-ios.zip。
Create a folder CordovaTestProject inside your document folder.
在文档文件夹中创建文件夹CordovaTestProject。
Then, open the terminal and try :
然后,打开终端并尝试:
./Documents/cordova-3.0.0/cordova-ios/bin/create /Users/<username>/Documents/CordovaXY/HelloWorld org.apache.cordova.HelloWorld HelloWorld
replace <username> by your username. You can get it with pwd in terminal. In terminal, type "pwd" and you will get your username
用您的用户名替换
#4
0
Make sure that you are inside \phonegap-2.7.0\lib\ios\bin before entering ./create
command. Refer the Blog Tutorial for a simple and straight forward explanation of PhoneGap instalation in Mac for iOS and creating a new project.
在输入./create命令之前,请确保您位于\ phonegap-2.7.0 \ lib \ ios \ bin中。请参阅博客教程,以获得Mac for iOS中PhoneGap安装的简单直接说明并创建新项目。