【发布时间】:2014-06-11 07:10:21
【问题描述】:
我使用以下说明 http://docs.phonegap.com/en/2.0.0/guide_command-line_index.md.html#Command-Line%20Usage 来设置 iOS 的命令行工具。
但是当我尝试使用 $ /path/to/my_new_cordova_project/cordova/debug 构建项目时
我明白了:
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 中尝试过
【问题讨论】:
标签: ios macos cordova command-line ipa