iOS Xcode 编译错误:无法执行命令:分段错误:11 [英] iOS Xcode compile error: unable to execute command: Segmentation fault: 11
问题描述
我有一个在过去编译完美的项目,但在上次 Xcode 更新 (6.3.2) 之后,每当我尝试直接在设备上运行它时,都会出现编译错误.在模拟器中构建和运行它工作正常.存档功能也可以正常工作.但是无论我连接什么设备或设备运行的是什么 iOS 版本,我总是遇到相同的编译错误:
I have a project which compiled perfectly in the past, but after the last Xcode update (6.3.2) I get a compile error whenever I try to run it directly on a device. Building and Running it in the simulator works fine. The Archive function works fine as well. But no matter what device I connect or what iOS version the device is running, I always get the same compile error:
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 并通过应用商店重新安装
- 我尝试更改我的代码以查明任何问题,但由于问题的源文件每次都会发生变化,我真的不再认为它与我的代码有任何关系.
这让我很生气.非常感谢任何帮助
This is driving me mad. Any help is much appreciated
推荐答案
显然这是我的 Xcode 版本中的一个错误.不得不恢复到旧的,一切又恢复了.使用最新的更新,一切又正常了.
Apparently it was a bug in my Xcode version. Had to revert to an old one and everything worked again. With the newest update everything was working ok again.
这篇关于iOS Xcode 编译错误:无法执行命令:分段错误:11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!