我通过调用进行发布构建:
xcodebuild -project HelloWorld -sdk iphoneos5.1 -configuration Release install
但对于 PhoneGap 应用程序,我收到此错误:
** 构建失败 **
以下构建命令失败:CompileC build/Phonefinch.build/Release-iphoneos/Phonefinch.build/Objects-normal/armv6/AppDelegate.o Phonefinch/Classes/AppDelegate.m normal armv6 Objective-c com.apple.compilers.llvm。 clang.1_0.compiler (1 失败)
当我尝试:
xcodebuild -project HelloWorld -sdk iphoneos5.1 -configuration Release clean build
我得到:
2012-10-04 22:51:52.776 xcodebuild[20016:4107] DVTAssertions:警告在 /SourceCache/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-1559/Xcode3Sources/XcodeIDE/Frameworks/DevToolsBase/pbxcore/SpecificationTypes/XCGccMakefileDependencies.m:87 详细信息:失败从“/Users/camobap-mac/Projects/Phonefinch/build/Phonefinch.build/Release-iphoneos/Phonefinch.build/Objects-normal/armv6/AppDelegate.d”加载依赖项输出内容。错误:错误域=NSCocoaErrorDomain 代码=260“无法打开文件“AppDelegate.d”,因为没有这样的文件。” UserInfo=0x400eabf40 {NSFilePath=/Users/camobap-mac/Projects/Phonefinch/build/Phonefinch.build/Release-iphoneos/Phonefinch.build/Objects-normal/armv6/AppDelegate.d, NSUnderlyingError=0x40079c140 “操作无法完成。没有这样的文件或目录"}。用户信息:{ NSFilePath = "/Users/camobap-mac/Projects/Phonefinch/build/Phonefinch.build/Release-iphoneos/Phonefinch.build/Objects-normal/armv6/AppDelegate.d"; NSUnderlyingError = "错误域=NSPOSIXErrorDomain Code=2 \"操作无法\U2019t 完成。没有相应的文件和目录\””; }。函数:void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *, void (^)(NSString *)) 线程:{name = (null), num = 7} 请在http://bugreport.apple.com带有此警告消息以及您可以提供的任何有用信息。** 构建失败 **
构建/发布-iphoneos/Phonefinch.build/Objects-normal/armv6/MainViewController.d''。错误:错误域=NSCocoaErrorDomain 代码=260“无法打开文件“MainViewController.d”,因为没有这样的文件。” UserInfo=0x400ef6e40 {NSFilePath=/Users/camobap-mac/Projects/Phonefinch/build/Phonefinch.build/Release-iphoneos/Phonefinch.build/Objects-normal/armv6/MainViewController.d, NSUnderlyingError=0x400ef24a0 "操作失败完成。没有这样的文件或目录"}。用户信息:{ NSFilePath = "/Users/camobap-mac/Projects/Phonefinch/build/Phonefinch.build/Release-iphoneos/Phonefinch.build/Objects-normal/armv6/MainViewController.d"; NSUnderlyingError = "错误域=NSPOSIXErrorDomain Code=2 \"操作无法\U2019t 完成。没有相应的文件和目录\””; }。函数:void XCGccMakefileDependenciesParsePathsFromRuleFile(NSString *, void (^)(NSString *)) 线程:{name = (null), num = 10} 请在http://bugreport.apple.com带有此警告消息以及您可以提供的任何有用信息。** 构建失败 **
以下构建命令失败:CompileC build/Phonefinch.build/Release-iphoneos/Phonefinch.build/Objects-normal/armv6/AppDelegate.o Phonefinch/Classes/AppDelegate.m normal armv6 objective-c com.apple.compilers.llvm。 clang.1_0.compiler CompileC build/Phonefinch.build/Release-iphoneos/Phonefinch.build/Objects-normal/armv6/MainViewController.o Phonefinch/Classes/MainViewController.m normal armv6 Objective-c com.apple.compilers.llvm.clang .1_0.compiler(2次失败)
如果我调用cordova/debug
-> ** BUILD SUCCESS **
,但我.app
是在调试模式下编译的。如何在命令行上进行发布构建?