Apple LLVM 6.0 Error: clang failed with exit code

2019-01-11 11:31发布

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...

7条回答
▲ chillily
2楼-- · 2019-01-11 12:09
  1. Make new file: ⌘cmd+N
  2. iOS/Mac > Other > PCH File > YourProject-Prefix.pch.
  3. Project > Build Settings > Search: "Prefix Header".
  4. Under "Apple LLVM 6.0" you will get the Prefix Header key
  5. Type in: "YourProjectName/YourProject-Prefix.pch"
  6. Clean project: ⌘cmd+⇧shift+K
  7. Build project: ⌘cmd+B
查看更多
登录 后发表回答