[英]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,我实际上检查了我的前缀标题是正确的。
And here is the file: 这是文件:
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¤tPage=3 http://www.buzztouch.com/forum/thread.php?tid=F42D8239A330C321132944A¤tPage=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.