2

Is there some way by which I can use Xcode only to organise my code and not display errors at the time of compilation? I want that the error messages and the output get displayed in the Terminal instead. I am a college student and am learning how to program in C. I really want the error messages to be displayed in the Terminal, as they are shown there in a fairly cryptic manner, instead of the user friendly manner which is there is in Xcode.

4

1 回答 1

2

如果你真的想以一种神秘的格式查看错误(哈哈......你为什么想要那个!),如果你去日志导航器(+ 7,或者选择“导航器”-“显示Xcode“查看”菜单中的“日志导航器”):

神秘错误

如果你真的想要不方便的日志结果,你可以在 Xcode 中方便地使用它们!


您还可以安装命令行工具(转到 Xcode Preferences - Downloads - Components 并选择命令行工具),然后也可以从命令行构建。例如,要从命令行构建一个 Xcode 项目,您可以:

Rob-MacBook-Air:Test rryan$ xcodebuild build 测试
=== 使用默认配置(发布)构建项目测试的原生目标测试 ===
检查依赖项

CpResource /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/ResourceRules.plist build/Release-iphoneos/Test.app/ResourceRules.plist
    cd /Users/rryan/Dropbox/Private/Personal/Xcode/Test
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/ usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin"
    builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -strip-debug-symbols -strip-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr /bin/strip -resolve-src-symlinks /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/ResourceRules.plist /Users/rryan/Dropbox/Private/Personal /Xcode/Test/build/Release-iphoneos/Test.app

ProcessInfoPlistFile build/Release-iphoneos/Test.app/Info.plist Test/Test-Info.plist
    cd /Users/rryan/Dropbox/Private/Personal/Xcode/Test
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/ usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin"
    builtin-infoPlistUtility Test/Test-Info.plist -genpkginfo /Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Release-iphoneos/Test.app/PkgInfo -expandbuildsettings -format binary -platform iphoneos -resourcerulesfile /Users /rryan/Dropbox/Private/Personal/Xcode/Test/build/Release-iphoneos/Test.app/ResourceRules.plist -o /Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Release-iphoneos/Test .app/Info.plist

ProcessPCH /var/folders/45/c8s3_0sj11d0vcr6pvg2l01c0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Test-Prefix-crjhyljfihiegncnnhikkpkeezqz/Test-Prefix.pch.pth Test/Test-Prefix.pch normal armv7 Objective-c com.apple .compilers.llvm.clang.1_0.compiler
    cd /Users/rryan/Dropbox/Private/Personal/Xcode/Test
    setenv LANG en_US.US-ASCII
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/ usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c-header -arch armv7 -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wno -缺少大括号 -W括号 -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno -strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode。app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min= 6.1 -iquote /Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/Test-generated-files.hmap -I/Users/rryan/Dropbox/Private/ Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/Test-own-target-headers.hmap -I/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test。 build/Release-iphoneos/Test.build/Test-all-target-headers.hmap -iquote /Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/ Test-project-headers.hmap -I/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Release-iphoneos/include -I/Applications/Xcode。app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/工具链/XcodeDefault.xctoolchain/usr/include -I/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/DerivedSources/armv7 -I/Users/rryan/ Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/DerivedSources -F/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Release-iphoneos -DNS_BLOCK_ASSERTIONS= 1 --serialize-diagnostics /var/folders/45/c8s3_0sj11d0vcr6pvg2l01c0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Test-Prefix-crjhyljfihiegncnnhikkpkeezqz/Test-Prefix.pch.dia -c /Users/rryan/Dropbox/Private /个人/Xcode/测试/测试/测试前缀。pch -o /var/folders/45/c8s3_0sj11d0vcr6pvg2l01c0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Test-Prefix-crjhyljfihiegncnnhikkpkeezqz/Test-Prefix.pch.pth -MMD -MT依赖项-MF /var/folders/45 /c8s3_0sj11d0vcr6pvg2l01c0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Test-Prefix-crjhyljfihiegncnnhikkpkeezqz/Test-Prefix.pch.d

ProcessPCH /var/folders/45/c8s3_0sj11d0vcr6pvg2l01c0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Test-Prefix-aisxswopiekfbndqblnpblxzgtrl/Test-Prefix.pch.pth Test/Test-Prefix.pch normal armv7s objective-c com.apple .compilers.llvm.clang.1_0.compiler
    cd /Users/rryan/Dropbox/Private/Personal/Xcode/Test
    setenv LANG en_US.US-ASCII
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/ usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c-header -arch armv7s -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wno -缺少大括号 -W括号 -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno -strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode。app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min= 6.1 -iquote /Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/Test-generated-files.hmap -I/Users/rryan/Dropbox/Private/ Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/Test-own-target-headers.hmap -I/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test。 build/Release-iphoneos/Test.build/Test-all-target-headers.hmap -iquote /Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/ Test-project-headers.hmap -I/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Release-iphoneos/include -I/Applications/Xcode。app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/工具链/XcodeDefault.xctoolchain/usr/include -I/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/DerivedSources/armv7s -I/Users/rryan/ Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/DerivedSources -F/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Release-iphoneos -DNS_BLOCK_ASSERTIONS= 1 --serialize-diagnostics /var/folders/45/c8s3_0sj11d0vcr6pvg2l01c0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Test-Prefix-aisxswopiekfbndqblnpblxzgtrl/Test-Prefix.pch.dia -c /Users/rryan/Dropbox/Private /个人/Xcode/测试/测试/测试前缀。pch -o /var/folders/45/c8s3_0sj11d0vcr6pvg2l01c0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Test-Prefix-aisxswopiekfbndqblnpblxzgtrl/Test-Prefix.pch.pth -MMD -MT 依赖项 -MF /var/folders/45 /c8s3_0sj11d0vcr6pvg2l01c0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Test-Prefix-aisxswopiekfbndqblnpblxzgtrl/Test-Prefix.pch.d

CompileC build/Test.build/Release-iphoneos/Test.build/Objects-normal/armv7s/AppDelegate.o Test/AppDelegate.m normal armv7s Objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/rryan/Dropbox/Private/Personal/Xcode/Test
    setenv LANG en_US.US-ASCII
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/ usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7s -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal -strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wno-missing -大括号 -W括号 -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno -four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict -selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode。app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min= 6.1 -iquote /Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/Test-generated-files.hmap -I/Users/rryan/Dropbox/Private/ Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/Test-own-target-headers.hmap -I/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test。 build/Release-iphoneos/Test.build/Test-all-target-headers.hmap -iquote /Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/ Test-project-headers.hmap -I/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Release-iphoneos/include -I/Applications/Xcode。app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/工具链/XcodeDefault.xctoolchain/usr/include -I/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/DerivedSources/armv7s -I/Users/rryan/ Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/DerivedSources -F/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Release-iphoneos -DNS_BLOCK_ASSERTIONS= 1 -include /var/folders/45/c8s3_0sj11d0vcr6pvg2l01c0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Test-Prefix-aisxswopiekfbndqblnpblxzgtrl/Test-Prefix.pch -MMD -MT 依赖项 -MF /Users/rryan/Dropbox/Private /Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test。build/Objects-normal/armv7s/AppDelegate.d --serialize-diagnostics /Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/Objects-normal/armv7s /AppDelegate.dia -c /Users/rryan/Dropbox/Private/Personal/Xcode/Test/Test/AppDelegate.m -o /Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release -iphoneos/Test.build/Objects-normal/armv7s/AppDelegate.o

CompileC build/Test.build/Release-iphoneos/Test.build/Objects-normal/armv7s/main.o Test/main.m normal armv7s Objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/rryan/Dropbox/Private/Personal/Xcode/Test
    setenv LANG en_US.US-ASCII
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/ usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7s -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal -strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wno-missing -大括号 -W括号 -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno -four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict -selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode。app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min= 6.1 -iquote /Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/Test-generated-files.hmap -I/Users/rryan/Dropbox/Private/ Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/Test-own-target-headers.hmap -I/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test。 build/Release-iphoneos/Test.build/Test-all-target-headers.hmap -iquote /Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/ Test-project-headers.hmap -I/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Release-iphoneos/include -I/Applications/Xcode。app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/工具链/XcodeDefault.xctoolchain/usr/include -I/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/DerivedSources/armv7s -I/Users/rryan/ Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/DerivedSources -F/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Release-iphoneos -DNS_BLOCK_ASSERTIONS= 1 -include /var/folders/45/c8s3_0sj11d0vcr6pvg2l01c0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Test-Prefix-aisxswopiekfbndqblnpblxzgtrl/Test-Prefix.pch -MMD -MT 依赖项 -MF /Users/rryan/Dropbox/Private /Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test。build/Objects-normal/armv7s/main.d --serialize-diagnostics /Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/Objects-normal/armv7s /main.dia -c /Users/rryan/Dropbox/Private/Personal/Xcode/Test/Test/main.m -o /Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release -iphoneos/Test.build/Objects-normal/armv7s/main.o

CompileC build/Test.build/Release-iphoneos/Test.build/Objects-normal/armv7/main.o Test/main.m normal armv7 Objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/rryan/Dropbox/Private/Personal/Xcode/Test
    setenv LANG en_US.US-ASCII
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/ usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal -strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wno-missing -大括号 -W括号 -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno -four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict -selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode。app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min= 6.1 -iquote /Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/Test-generated-files.hmap -I/Users/rryan/Dropbox/Private/ Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/Test-own-target-headers.hmap -I/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test。 build/Release-iphoneos/Test.build/Test-all-target-headers.hmap -iquote /Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/ Test-project-headers.hmap -I/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Release-iphoneos/include -I/Applications/Xcode。app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/工具链/XcodeDefault.xctoolchain/usr/include -I/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/DerivedSources/armv7 -I/Users/rryan/ Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/DerivedSources -F/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Release-iphoneos -DNS_BLOCK_ASSERTIONS= 1 -include /var/folders/45/c8s3_0sj11d0vcr6pvg2l01c0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Test-Prefix-crjhyljfihiegncnnhikkpkeezqz/Test-Prefix.pch -MMD -MT 依赖项 -MF /Users/rryan/Dropbox/Private /Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test。build/Objects-normal/armv7/main.d --serialize-diagnostics /Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/Objects-normal/armv7 /main.dia -c /Users/rryan/Dropbox/Private/Personal/Xcode/Test/Test/main.m -o /Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release -iphoneos/Test.build/Objects-normal/armv7/main.o

CompileC build/Test.build/Release-iphoneos/Test.build/Objects-normal/armv7/AppDelegate.o Test/AppDelegate.m normal armv7 Objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/rryan/Dropbox/Private/Personal/Xcode/Test
    setenv LANG en_US.US-ASCII
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/ usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal -strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wno-missing -大括号 -W括号 -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno -four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict -selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode。app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min= 6.1 -iquote /Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/Test-generated-files.hmap -I/Users/rryan/Dropbox/Private/ Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/Test-own-target-headers.hmap -I/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test。 build/Release-iphoneos/Test.build/Test-all-target-headers.hmap -iquote /Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/ Test-project-headers.hmap -I/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Release-iphoneos/include -I/Applications/Xcode。app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/工具链/XcodeDefault.xctoolchain/usr/include -I/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/DerivedSources/armv7 -I/Users/rryan/ Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/DerivedSources -F/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Release-iphoneos -DNS_BLOCK_ASSERTIONS= 1 -include /var/folders/45/c8s3_0sj11d0vcr6pvg2l01c0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Test-Prefix-crjhyljfihiegncnnhikkpkeezqz/Test-Prefix.pch -MMD -MT 依赖项 -MF /Users/rryan/Dropbox/Private /Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test。build/Objects-normal/armv7/AppDelegate.d --serialize-diagnostics /Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/Objects-normal/armv7 /AppDelegate.dia -c /Users/rryan/Dropbox/Private/Personal/Xcode/Test/Test/AppDelegate.m -o /Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release -iphoneos/Test.build/Objects-normal/armv7/AppDelegate.o

CompileC build/Test.build/Release-iphoneos/Test.build/Objects-normal/armv7/ViewController.o Test/ViewController.m normal armv7 Objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/rryan/Dropbox/Private/Personal/Xcode/Test
    setenv LANG en_US.US-ASCII
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/ usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -std=gnu99 -fobjc-arc -Wno-trigraphs -fpascal -strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wno-missing -大括号 -W括号 -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno -four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict -selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode。app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min= 6.1 -iquote /Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/Test-generated-files.hmap -I/Users/rryan/Dropbox/Private/ Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/Test-own-target-headers.hmap -I/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test。 build/Release-iphoneos/Test.build/Test-all-target-headers.hmap -iquote /Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/ Test-project-headers.hmap -I/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Release-iphoneos/include -I/Applications/Xcode。app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Applications/Xcode.app/Contents/Developer/工具链/XcodeDefault.xctoolchain/usr/include -I/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/DerivedSources/armv7 -I/Users/rryan/ Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/DerivedSources -F/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Release-iphoneos -DNS_BLOCK_ASSERTIONS= 1 -include /var/folders/45/c8s3_0sj11d0vcr6pvg2l01c0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Test-Prefix-crjhyljfihiegncnnhikkpkeezqz/Test-Prefix.pch -MMD -MT 依赖项 -MF /Users/rryan/Dropbox/Private /Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test。build/Objects-normal/armv7/ViewController.d --serialize-diagnostics /Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.build/Objects-normal/armv7 /ViewController.dia -c /Users/rryan/Dropbox/Private/Personal/Xcode/Test/Test/ViewController.m -o /Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release -iphoneos/Test.build/Objects-normal/armv7/ViewController.o
/Users/rryan/Dropbox/Private/Personal/Xcode/Test/Test/ViewController.m:21:5:错误:使用未声明的标识符“i”
    我= 4;
    ^
产生 1 个错误。


** 构建失败 **


以下构建命令失败:
    CompileC build/Test.build/Release-iphoneos/Test.build/Objects-normal/armv7/ViewController.o Test/ViewController.m normal armv7 Objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 次失败)

=== 使用默认配置(发布)构建项目测试的原生目标测试 ===
检查依赖项
不支持的构建操作“测试”


** 构建失败 **


以下构建命令失败:
    检查依赖项
(1 次失败)

或者,如果您只想编译一个 .c 文件:

Robert-Ryans-iMac:test rryan$ clang test.c
test.c:5:10:警告:缺少终止 '"' 字符 [-Winvalid-pp-token]
  printf("你好,世界);
         ^
test.c:5:10:错误:预期的表达式
生成 1 个警告和 1 个错误。
于 2013-08-11T14:45:58.607 回答