首先,我知道关于此主题有很多问题,但找不到适合我的解决方案。
突然,我收到了如下的clang错误:
1. /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:154:2: current parser token 'if'
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
Target: i386-apple-darwin11.4.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script.
clang: error: unable to execute command: Segmentation fault: 11
clang: note: diagnostic msg: Error generating preprocessed source(s).
Command /Volumes/Xcode/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 254
最佳答案
使用调试器检查崩溃发生的位置。由于您没有任何代码,也许没有人可以在此方面为您提供帮助。为了获得全面的支持,您必须在应用程序崩溃的地方张贴代码,并且遇到此错误。
Here is same error discussed in Apple Official Support Communities, also refer to this
希望这可以帮助
https://stackoverflow.com/questions/17856175/