2013-04-14 142 views
1

我正在使用Xcode 4.5並使用終端命令行「xcodebuild」構建我的應用程序。但我得到以下錯誤:XCode 4.5命令行編譯錯誤

The following build commands failed: 
    CompileC "build/Sample_google.build/Release-iphoneos/Tech Time.build/Objects-normal/armv7/AppDelegate.o" Sample_google/Classes/AppDelegate.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler 
    CompileC "build/Sample_google.build/Release-iphoneos/Tech Time.build/Objects-normal/armv7/MainViewController.o" Sample_google/Classes/MainViewController.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler 
    CompileC "build/Sample_google.build/Release-iphoneos/Tech Time.build/Objects-normal/armv7/ChildBrowserCommand.o" Sample_google/Plugins/ChildBrowserCommand.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler 
    CompileC "build/Sample_google.build/Release-iphoneos/Tech Time.build/Objects-normal/armv7s/MainViewController.o" Sample_google/Classes/MainViewController.m normal armv7s objective-c com.apple.compilers.llvm.clang.1_0.compiler 
    CompileC "build/Sample_google.build/Release-iphoneos/Tech Time.build/Objects-normal/armv7s/AppDelegate.o" Sample_google/Classes/AppDelegate.m normal armv7s objective-c com.apple.compilers.llvm.clang.1_0.compiler 
(5 failures) 

請建議此錯誤的解決方案。它正在發生很久。

感謝, ANKIT

+0

項目是否建立從OK在Xcode中? –

+0

是的....它從Xcode編譯得很好.. –

+1

你應該發佈你用來調用xcodebuild的確切命令行(即將它添加到你的問題中)。 –

回答

0

我得到了同樣的問題。我通過將方案配置添加到xcodebuild命令來解決它。請參閱下面的示例代碼。

xcodebuild -scheme "QuickView" -project "$PATH_PROJECT" -configuration Release 

感謝

Chamath傑文 技術領先 的Gmail:[email protected] Skype的:chamathjeevan 林肯:http://lk.linkedin.com/in/chamathjeevan 手機:+94 777 998 445