简体   繁体   English

错误:命令/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang失败,退出代码为1

[英]ERROR: Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

I am developing an app for iPhone and iPad. 我正在开发适用于iPhone和iPad的应用程序。

Suddenly I can't run my project because of this error: 突然间我因为这个错误而无法运行我的项目:

clang: error: no such file or directory: '/Users/AkdemiaMacBookAir/Developer/iOS/ios-akdemia/ios-akdemia/ios-akdemia-Prefix.pch'
clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

I was looking for in Stack Overflow and I actually checked out that my Prefix Header is correct. 我正在寻找Stack Overflow,我实际上检查了我的前缀标题是正确的。

我的xcode构建设置

And here is the file: 这是文件:

Finder中的文件夹和文件

I don't understand why xcode try to compile the pch from this path '/Users/AkdemiaMacBookAir/Developer/iOS/ios-akdemia/ios-akdemia/ios-akdemia-Prefix.pch' if I never told it that. 我不明白为什么xcode尝试从这条路径编译pch'/Users/AkdemiaMacBookAir/Developer/iOS/ios-akdemia/ios-akdemia/ios-akdemia-Prefix.pch'如果我从来没有告诉过它。

This guy fixed it: 这家伙修好了:

http://www.buzztouch.com/forum/thread.php?tid=F42D8239A330C321132944A&currentPage=3 http://www.buzztouch.com/forum/thread.php?tid=F42D8239A330C321132944A&currentPage=3

This was his answer: 这是他的回答:

Click on the name of your project on the list of files/folders on the left in Xcode (at the very top of the list). 在Xcode左侧的文件/文件夹列表中单击项目名称(位于列表的最顶部)。 Look at the "Targets" section on the left-hand side of the window to the right. 查看右侧窗口左侧的“目标”部分。 Likely, there's two listed with the second being a "test" item. 可能,有两个列出,第二个是“测试”项目。 Right-click on that item and select "delete". 右键单击该项目,然后选择“删除”。 Then try to run the project again. 然后尝试再次运行该项目。 See screenshot below for a visual cue. 请参阅下面的屏幕截图以获取视觉提示。

在此输入图像描述

暂无
暂无

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

相关问题 错误:命令/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc失败,退出代码为1 - Error: Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1 Xcode 7失败,命令/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc失败,退出代码为1 - Xcode 7 fails with Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1 命令/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lex失败,退出代码为1 - Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lex failed with exit code 1 XCode - 命令 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc 失败,退出代码 1 - XCode - Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1 生成失败并显示错误命令/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc - Build failed with error Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc Swift编译器错误:命令/Applications/Xcode9.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc失败,退出代码为6 - Swift Compiler Error : Command /Applications/Xcode9.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 6 Xcode 8.0 命令 /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc 失败,退出代码为 1 - Xcode 8.0 Command /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1 找不到选项“-L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.0/iphonesimulator”的目录 - directory not found for option '-L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.0/iphonesimulator' 命令 /Xcode.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/usr/bin/swiftc 失败,退出代码为 1 - Command /Xcode.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/usr/bin/swiftc failed with exit code 1 xcode和avr arduino“命令/Applications/Xcode.app/Contents/Developer/usr/bin/make失败,出现退出代码2”错误。 - xcode and avr arduino “Command /Applications/Xcode.app/Contents/Developer/usr/bin/make failed with exit code 2” error.
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM