clang:错误:clang frontend命令失败,退出代码为70(使用-v查看调用)

问题描述 投票:7回答:4

我不知道是什么原因造成的。

它不会发生在iPhone 5和模拟器上。它只发生在我的原装iPhone 7上。

fatal error: error in backend: Error while trying to spill X0 from class GPR64: Cannot scavenge register without an emergency spill slot!
clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
Apple LLVM version 9.0.0 (clang-900.0.34.1)
Target: aarch64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode-beta.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/xg/tgwkzqt15xd9jprnv9f0gn4c0000gn/T/CityArray-6e6c1e.m
clang: note: diagnostic msg: /var/folders/xg/tgwkzqt15xd9jprnv9f0gn4c0000gn/T/CityArray-6e6c1e.cache
clang: note: diagnostic msg: /var/folders/xg/tgwkzqt15xd9jprnv9f0gn4c0000gn/T/CityArray-6e6c1e.sh
clang: note: diagnostic msg: Crash backtrace is located in
clang: note: diagnostic msg: /Users/junhyun/Library/Logs/DiagnosticReports/clang_<YYYY-MM-DD-HHMMSS>_<hostname>.crash
clang: note: diagnostic msg: (choose the .crash file that corresponds to your crash)
clang: note: diagnostic msg: 

********************
ios objective-c xcode llvm
4个回答
4
投票

当我使用xcode存档我的应​​用程序时出现此错误 - 在运行SIM卡和物理设备时运行 - 但我的物理设备仍然被选为计划。解决方案对我有用:清理构建文件夹,并选择“通用IOS设备”作为方案。


0
投票

当我将一个大型数组硬编码到.h文件中时出现此错误。在模拟器上工作正常,在设备上抛出此错误。

将数组更改为空并且编译得很好。


0
投票

这让我疯狂,我仍然无法确定崩溃的原因。但是其中一些步骤或其中的一些组合似乎可以在此期间对其进行补救。

  • 尝试做一个干净的构建。
  • 运行pod install / pod deintegrate
  • 如果您在删除npm install后正在使用react本机应用程序,请运行node_modules
  • 关闭xcode,然后删除~/Library/Developer/Xcode/DerivedData
  • 如果无效则尝试重新启动系统。

0
投票

我使用以下步骤来摆脱错误:

  • 从Xcode Product-> Clean Build Folder清除缓存
  • npm安装
  • 运行react-native run-ios
  • 使用Xcode构建应用程序。
© www.soinside.com 2019 - 2024. All rights reserved.