cp:/javascripts/phonegap.js:没有这样的文件或目录

时间:2016-01-19 14:13:08

标签: javascript ios cordova phonegap-plugins

我的mac中没有安装PhoneGap。现在,我想用Xcode运行一个PhoneGap项目,我收到了这个错误。谁能告诉我如何在Xcode中运行PhoneGap项目?我想从Junkyard-Jumbotron运行该项目。

1 个答案:

答案 0 :(得分:0)

我还无法发表评论,您是否已在文件目录中检查该文件是否存在?确保您已满足所有要求。

install the following:
   - Xcode 4.3+
   - Xcode Command Line Tools
   - Intel-based computer with Mac OS X Lion or greater (10.7+)
   - Necessary for installing on device:
    -----Apple iOS device (iPhone, iPad, iPod Touch)
    -----iOS developer certificate

Install the iOS SDK and Apache Cordova

   - Install Xcode from the Mac App Store or Apple Developer Downloads
  -  Install the Xcode Command Line Tools (Xcode Preferences -> Downloads -> Components -> Command Line Tools -> Install).
   - Download the latest release of [Apache PhoneGap
    -----extract its contents
    -----Apache Cordova iOS is found under lib/ios
    Install CordovaLib

-Download the Cordova source
-Extract to source to their final permanent location on your hard drive (for example, to ~/Documents/CordovaLib-2.X.X)

- 没有第3步

以下是开始新项目的链接:

http://docs.phonegap.com/en/2.1.0/guide_getting-started_ios_index.md.html#Getting%20Started%20with%20iOS