简体   繁体   English

Apple LLVM 9.0错误

[英]Apple LLVM 9.0 Error

I have recently updated my Xcode to version 9.0.1, but then my project cannot work properly in my iPhone, yet it can run correctly in the simulator. 我最近将Xcode更新到了9.0.1版,但是我的项目无法在iPhone中正常运行,但可以在模拟器中正确运行。 Here is the log infomation: 这是日志信息:

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 9.0.0 (clang-900.0.38)
Target: aarch64-apple-darwin16.7.0
Thread model: posix
InstalledDir:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
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/45/mzdnwtsn6bx8wlzgl0svljdc0000gn/T/ExchangeHistoryController-141ae9.m
clang: note: diagnostic msg: /var/folders/45/mzdnwtsn6bx8wlzgl0svljdc0000gn/T/ExchangeHistoryController-141ae9.cache
clang: note: diagnostic msg: /var/folders/45/mzdnwtsn6bx8wlzgl0svljdc0000gn/T/ExchangeHistoryController-141ae9.sh
clang: note: diagnostic msg: /var/folders/45/mzdnwtsn6bx8wlzgl0svljdc0000gn/T/ExchangeHistoryController-141ae9.crash
clang: note: diagnostic msg: 

********************

I found online that some guys have met the same problem before and then turned off the bitcode in the Xcode build settings to fix this. 我在网上发现有些人之前遇到过相同的问题,然后关闭了Xcode构建设置中的位码来解决此问题。 I did the same thing , nothing worked for me. 我做了同样的事情,对我没有任何帮助。 Does anybody have succeeded in fixing this? 有人成功解决了这个问题吗? Any idea would be appreciated! 任何想法将不胜感激!

Xcode -> preference -> locations -> Derived Data Xcode->首选项->位置->派生数据

You should remove this folder. 您应该删除此文件夹。

Restart the Xcode. 重新启动Xcode。 Select Xcode -> Product -> Clean. 选择Xcode->产品->清洁。 Hope this may solve your issue. 希望这可以解决您的问题。 This worked for me. 这对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM