iOS Xcode 编译错误 : unable to execute command: Segmentation fault: 11

标签 ios objective-c xcode compiler-errors llvm

我有一个项目在过去编译完美,但在上次 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: 

********************
  1. 它显示了我应该提交给错误报告的随机文件。
  2. 我没有从工作版本到导致当前问题的版本进行任何代码更改,我什至恢复到在 Appstore 中运行的早期版本,但仍然出现相同的错误。
  3. 我已删除 xcode 并通过应用商店重新安装
  4. 我尝试更改我的代码以查明任何问题,但由于问题的源文件每次都在变化,我真的不再认为它与我的代码有任何关系。

这让我发疯。 非常感谢任何帮助

最佳答案

我尝试将 paypal 框架添加到我的 iOS 项目中(使用 Xcode 7.2 和 Objective-C 语言),构建它时没有出现任何错误,但是当我尝试存档项目并尝试制作 IPA 时,我我收到那个错误

unable to execute command: Segmentation fault: 11

截图:

enter image description here

经过大量尝试后,我在项目的 Target->Build Settings->Enable Bitcode 中禁用了 Bitcode。现在构建可以实现了。请检查以下屏幕截图。

enter image description here

关于iOS Xcode 编译错误 : unable to execute command: Segmentation fault: 11,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30576693/

相关文章:

ios - 锁屏本地通知处理 "slide to view"

iOS 自动布局旋转应用程序崩溃

ios - UIKit-[UIApplication sendAction :to:from:forEvent:] crash

c - OS X 上的 GCC 分配的内存比预期的多

ios - 在 Swift 中连接到互联网时,所有用户如何将 UIViews 发布到单个流?

ios - 解析 Objective C 库在 [PFInternalUtils installationId] 上崩溃

objective-c - Objective-C 和 swift

ios - 无法将特定的CGColor应用于CGContextSetFillColor

swift - 如何摆脱这些警告?

ios - 画中画按钮已禁用