2014-04-25 24 views
1

我使用以下說明http://docs.phonegap.com/en/2.0.0/guide_command-line_index.md.html#Command-Line%20Usage設置iOS的命令行工具。使用命令行爲Phonegap項目創建iPA

但是當我嘗試建立以$ /路徑/該項目/ my_new_cordova_project /科爾多瓦/調試

我得到這個:

In file included from /Users/jakob/Dropbox/Coding/phonegap/ios_project/ios_project/Classes/AppDelegate.m:28: 
/Users/jakob/Dropbox/Coding/phonegap/ios_project/ios_project/Classes/AppDelegate.h:30:9: fatal error: 'Cordova/CDVViewController.h' file not found 
#import <Cordova/CDVViewController.h> 
     ^
1 error generated. 


** BUILD FAILED ** 


The following build commands failed: 
    CompileC build/ios_project.build/Debug-iphonesimulator/ios_project.build/Objects-normal/i386/MainViewController.o ios_project/Classes/MainViewController.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler 
    CompileC build/ios_project.build/Debug-iphonesimulator/ios_project.build/Objects-normal/i386/AppDelegate.o ios_project/Classes/AppDelegate.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler 
(2 failures) 

當我建立和Xcode一切項目工作正常,但我寧願使用命令行工具。

我: 的Xcode 5.0 的PhoneGap 2.9.1,我已經在3.4.0

回答

0

出現此錯誤可能是由於使用工作區文件嘗試。嘗試使用xcode項目目錄應該可以解決問題。

相關問題