命令 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang 失败并退出

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24181673/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 05:04:02  来源:igfitidea点击:

Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit

iosobjective-cxcodeswift

提问by Shanthanu

I am facing the following error in my application.

我在我的应用程序中遇到以下错误。

    clang: error: no such file or directory: '/Users/madhavadudipalli/Desktop/ ios projects/Little Flower Public School /Little Flower Public School Ipad/Little Flower Public S  chool HD-Prefix*.pch'
    clang: error: no input files
    Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

Please tell me what does this mean and what should I do to resolve this one. Been sometime since I have stuck on this one. Kindly Guide me where am I going wrong here.

请告诉我这是什么意思,我应该怎么做才能解决这个问题。自从我坚持这个以来已经有一段时间了。请指导我这里哪里出错了。

Thanks in advance.

提前致谢。

回答by Anbu.Karthik

Following steps fixed this problem:

以下步骤解决了这个问题:

Issue: Compiler unable to locate Little Flower Public S chool HD-Prefix.pchfile. This is because Location of Prefix Header file Little Flower Public S chool HD-Prefix-Prefix.pchin Project Target is incorrect.

问题:编译器无法找到小花公立学校 HD-Prefix.pch文件。这是因为Project Target中Prefix头文件Little Flower Public Sc​​hol HD-Prefix-Prefix.pch的位置不正确。

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 5.1 - Language" Underneath this node -> You will find the key/value setting for Prefix Header file.

该位置在项目目标/构建设置中定义。您需要转到:项目目标 -> 构建设置选项卡 -> 向下滚动并在此节点下方查找“Apple LLVM 编译器 5.1 - 语言” -> 您将找到前缀头文件的键/值设置。

Normally Prefix header file is located under "Supporting File" Folder in your project

通常 Prefix 头文件位于项目中的“Supporting File”文件夹下