Apple LLVM 6.0错误:clang失败,退出代码-1 [英] Apple LLVM 6.0 Error: clang failed with exit code -1
问题描述
我在我的MacBook Air上创建了我的应用程序,并继续使用它在那里很好。然后,我开始与一个使用另一个Mac(当然)的同事工作。无论如何,我们通过Dropbox共享我们的Xcode项目(我们只是切换到BitBucket,不要担心;)),当他试图打开他的Mac上的项目有一个 Apple LLVM 6.0错误
在计算机上运行时出现以下错误:
clang:error:no such文件或目录:'/ Users / linus / Dropbox / Apps / My App / Projekt / My App / SlideMenu / SlideMenu-Prefix.pch'
clang:错误:无输入文件 b
$ bCommand /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
错误的最后一行对我来说最重要,这就是为什么我在这里列出。
我知道这个问题被问了几次现在,但有没有一个有用的答案,为我工作。我试图禁用 Foundation断言
,正如它在这个主题的另一个答案中说,但没有工作。我重新启动&甚至重新安装Xcode和所有文件都存在,没有应该丢失。
我运行的Xcode 6.0.1和Mac OS X 10.10。我希望有人能回答这个,我现在是绝望的...
。基本上我删除了我的测试目标。我发现这个:
希望这有助于!
编辑:在 tests
目标,我实际上发现,我不一定需要删除它,有一个断开的路径,只是修复它使它一切正常。
I created my app on my MacBook Air and kept working with it there which was fine. Then I started working with a colleague who used another Mac (of course). Anyway, we share our Xcode project via Dropbox (we are just switching to BitBucket, don't worry ;) ), when he tried to open the project on his Mac there was a Apple LLVM 6.0 Error
with the following error while on my computer the same project runs perfectly:
clang: error: no such file or directory: '/Users/linus/Dropbox/Apps/My App/Projekt/My App/SlideMenu/SlideMenu-Prefix.pch' clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
The last lines of the error seem most important to me which is why I listed them here.
I do know this question was asked several times now but there was never a useful answer which worked for me. I tried to disable the Foundation Assertions
as it said in another answer on this topic but that did not work. Also I restarted & even reinstalled Xcode and all files are existing, none should be missing.
I am running Xcode 6.0.1 and Mac OS X 10.10. I hope someone can answer this, I'm kind of desperate now...
Hey I just ran into the same problem. Basically I deleted my tests target. I found this:
Errors When Compiling iOS 8, Xcode 6.0.1
Which basically says that:
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). 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.
And a picture to help you out:
Hope this helps!
EDIT: Also in the tests
target, I actually found that I didn't necessarily need to delete it, there was a broken path, just fixing it makes it all work again.
这篇关于Apple LLVM 6.0错误:clang失败,退出代码-1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!