【发布时间】:2015-08-15 02:25:42
【问题描述】:
我有一个过去编译完美的项目,但在上次 Xcode 更新 (6.3.2) 之后,每当我尝试直接在设备上运行它时都会出现编译错误。在模拟器中构建和运行它工作正常。存档功能也可以正常工作。但是无论我连接什么设备或设备运行什么iOS版本,我总是得到相同的编译错误:
Stack dump:
0. /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CIFilter.h:221:39: current parser token 'NS_REQUIRES_NIL_TERMINATION'
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: arm-apple-darwin14.3.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: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /var/folders/p5/2yjs4f055hb0vvgl12yvj38r0000gq/T/SmallAdsSystem-a86b3e.m
clang: note: diagnostic msg: /var/folders/p5/2yjs4f055hb0vvgl12yvj38r0000gq/T/SmallAdsSystem-a86b3e.cache
clang: note: diagnostic msg: /var/folders/p5/2yjs4f055hb0vvgl12yvj38r0000gq/T/SmallAdsSystem-a86b3e.sh
clang: note: diagnostic msg:
********************
- 它显示了我应该提交给错误报告的随机文件。
- 我没有将任何代码从工作版本更改为导致当前问题的版本,我什至恢复到早期版本,该版本已在 Appstore 中实时运行,但仍然出现相同的错误。
- 我已删除 xcode 并通过应用商店重新安装
- 我尝试更改我的代码以找出任何问题,但由于问题的源文件每次都会更改,我真的不再认为它与我的代码有任何关系。
这快把我逼疯了。 非常感谢任何帮助
【问题讨论】:
-
你这样做了吗? "诊断消息:请向developer.apple.com/bugreporter 提交错误报告,并包括崩溃回溯、预处理源和相关的运行脚本。clang:注意:诊断消息:"
-
不,还没有。想知道这是否只是我的错。
-
请更改您的编译器 GCC 而不是 LLVM,然后尝试。
-
Picciano 是正确的:您应该始终报告编译器崩溃,这不是您的错。 (尽管正如 user2444342 所指出的,有时您可以通过修改代码来解决崩溃问题。) VD Patel:多年前从 Xcode 中删除了 GCC。 (上一个 GPL 2 版本已经很老了,Apple 不能使用任何 GPL 3 版本。)
标签: ios objective-c xcode compiler-errors llvm