【发布时间】:2013-08-11 13:37:11
【问题描述】:
有什么方法可以让我只使用 Xcode 来组织我的代码而不在编译时显示错误? 我希望错误消息和输出显示在终端中。我是一名大学生,正在学习如何用 C 编程。 我真的希望将错误消息显示在终端中,因为它们以相当神秘的方式显示在那里,而不是 Xcode 中的用户友好方式。
【问题讨论】:
-
如果要在终端中读取编译器输出,则在终端中运行编译器。 -.-
clang main.m
有什么方法可以让我只使用 Xcode 来组织我的代码而不在编译时显示错误? 我希望错误消息和输出显示在终端中。我是一名大学生,正在学习如何用 C 编程。 我真的希望将错误消息显示在终端中,因为它们以相当神秘的方式显示在那里,而不是 Xcode 中的用户友好方式。
【问题讨论】:
clang main.m
如果你真的想以一种神秘的格式查看错误(哈哈……你为什么要那样!),如果你去日志导航器,你可以从 Xcode 访问它(⌘+7,或者从Xcode“查看”菜单中选择“导航器”-“显示日志导航器”):
如果你真的想要不方便的日志结果,你可以方便地在 Xcode 中得到它们!
您还可以安装命令行工具(转到 Xcode Preferences - 下载 - 组件并选择命令行工具),然后也可以从命令行构建。例如,要从命令行构建 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 /Toolchains/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/Personal/Xcode/Test/Test/Test-Prefix.pch -o /var/folders/45/c8s3_0sj11d0vcr6pvg2l01c0000gn/C/com.apple.Xcode.501/ SharedPrecompiledHeaders/Test-Prefix-crjhyljfihiegncnnhikkpkeezqz/Test-Prefix.pch.pth -MMD -MT dependencies -MF /var/folders/45/c8s3_0sj11d0vcr6pvg2l01c0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/Test-Prefix-crjhyljfihiegncnnhikkpkeez -前缀.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=hidde n -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/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneo s/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/Personal/Xcode/Test/Test/Test-Prefix.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-aisxswopiekfbnd测试前缀.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-符号转换-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/Toolchains/ 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/测试/测试/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-符号转换-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/Toolchains/ 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/测试/测试/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-s ign-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/Toolchains/ XcodeDefault.xctoolchain/usr/include -I/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.b uild/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/测试/测试/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-s ign-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/Toolchains/ XcodeDefault.xctoolchain/usr/include -I/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.b uild/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/测试/测试/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-s ign-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/Toolchains/ XcodeDefault.xctoolchain/usr/include -I/Users/rryan/Dropbox/Private/Personal/Xcode/Test/build/Test.build/Release-iphoneos/Test.b uild/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/测试/测试/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 个错误。【讨论】: