简体   繁体   English

XCode 4.5命令行生成错误

[英]XCode 4.5 Command Line Build Error

I am using Xcode 4.5 and using terminal command line "xcodebuild" to build my application. 我正在使用Xcode 4.5,并使用终端命令行“ xcodebuild”来构建我的应用程序。 But I am getting following error: 但是我收到以下错误:

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)

Please suggest a solution for this error. 请提出针对此错误的解决方案。 It is occurring since long. 长期以来一直在发生。

Thanks, Ankit 谢谢安吉

i got the same issue. 我有同样的问题。 I solve it by adding the scheme configuration to xcodebuild command. 我通过将方案配置添加到xcodebuild命令来解决它。 Please refer to the sample code below. 请参考下面的示例代码。

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

Thanks 谢谢

Chamath Jeevan Technical Lead Gmail : chamathjeevan@gmail.com Skype : chamathjeevan Linkin : http://lk.linkedin.com/in/chamathjeevan Mobile :+94 777 998 445 Chamath Jeevan技术主管Gmail:chamathjeevan@gmail.com Skype:chamathjeevan Linkin: http ://lk.linkedin.com/in/chamathjeevan手机:+94 777 998 445

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM