简体   繁体   English

更改体系结构后,Apple LLVM 6.0错误

[英]Apple LLVM 6.0 Error After Changing Architectures

I have been working on reviving an older open source project, and when I updated the architecture from $(ARCHS_STANDARD_32_BIT) to $(ARCHS_STANDARD) , Xcode gave me a very long error with the title Apple LLVM 6.0 Error which ended with the line Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1 . 我一直在努力恢复一个较旧的开源项目,当我将架构从$(ARCHS_STANDARD_32_BIT)更新为$(ARCHS_STANDARD) ,Xcode出现了标题为Apple LLVM 6.0 Error的很长的错误,该Apple LLVM 6.0 ErrorCommand /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1结尾Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1 I tried undoing the architecture change, but it still gave the error when I ran it again. 我尝试撤消架构更改,但是当我再次运行它时,它仍然给出错误。

The previous build worked perfectly, and the only changes that were made on the erroneous build were: 先前的版本运行完美,对错误的版本进行的唯一更改是:

1) I moved the project to Dropbox 1)我将项目移至Dropbox

2) I changed the architecture 2)我改变了架构

Here is the full error: http://pastebin.com/huLnWc7v 这是完整的错误: http : //pastebin.com/huLnWc7v

Try This , It may solve your problem. 试试这个,可能会解决您的问题。

Issue: Compiler unable to locate .pch file. 问题:编译器无法找到.pch文件。 This is because Location of Prefix Header file .pch in Project Target is incorrect. 这是因为Prefix Header文件.pch在Project Target中的位置不正确。

The location is defined in Project Target/Build setting. 该位置在“项目目标/构建”设置中定义。 You will need to go to: Project Target -> Build Settings Tab -> Scroll down and Look for "Apple LLVM Compiler 6.0 - Language" Underneath this node -> You will find the key/value setting for Prefix Header file. 您将需要转到:项目目标->构建设置选项卡->向下滚动并查找“ Apple LLVM Compiler 6.0-语言”在此节点下->您将找到前缀头文件的键/值设置。

Normally Prefix header file is located under "Supporting File" Folder in your project 通常,前缀头文件位于项目中的“ Supporting File”文件夹下

Reference : Anbu.Karthik 参考: Anbu.Karthik

在此处输入图片说明

I was trying to compile ARM code as if it were ARM64. 我试图像编译ARM64一样编译ARM代码。 Since it's just an app and not an extension, I don't need to do that. 由于它只是一个应用程序,而不是扩展程序,因此我不需要这样做。 So, under Project>Target>Build Settings> Architectures I changed the Architectures key I standard architectures, and the Valid Architectures key to armv7. 因此,在“项目”>“目标”>“构建设置”>“架构”下,将“架构”键更改为标准架构,并将“有效架构”键更改为armv7。

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

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