Apple LLVM 6.0 Error: clang failed with exit code -1

30,786

Solution 1

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:

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

Solution 2

  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

Solution 3

Solved this by going to my project settings and changing the deployment target. The deployment target was originally at 7.0. When i changed it from iOS 8.0 -> 9.1 it works fine and there is no error.

enter image description here

Hope that helps :)

Solution 4

You do not need to delete the overall build settings. Just change the Library Search Paths, here are the steps:

  1. Click on your project name (very top of the navigator)
  2. Click on your project target
  3. Click the tab Build Settings
  4. Search for LIBRARY_SEARCH_PATHS
  5. Change its value to $(inherited) flag.

Here you go!

Or else you can always remove the build setting at all! Cheers!

Solution 5

One of the simple things I did I went into "Build Options" and changed the property for Enable Bitcode from yes to no

This fixed my issue.

Screenshot of Settings

Share:
30,786

Related videos on Youtube

LinusGeffarth
Author by

LinusGeffarth

I'm co-founder & CTO at Funeral Marketplace, a B2B2C online marketplace connecting every player in the funeral industry. I'm also head of software development at CONVELA and have my own little development studio for side projects: ögli{codes}. I've started out as project manager building a little app with my uncle; then began developing for iOS my own (for iPad using Obj-C at the time); made some iPhone and iPad apps (Swift). Eventually we founded the Funeral Marketplace, for which I led the iOS development (Swift) and managed the web (react.js) & backend (php, laravel) development. I then began developing for the frontend and backend as well, while also building my knowledge in server-side swift using the Vapor framework making me full-stack. #SOreadytohelp Stack Overflow to me, means endless possibilities. I feel like I can do anything using all the never-ending source of knowledge people share on SO. I am #SOreadytohelp because I want to give back exactly what I got and much more. I want to share my knowledge as much as possible to help people around the world progress and create beautiful things. I want to thank Stack Overflow for teaching me to code & helping me out every day. ♡

Updated on January 03, 2020

Comments

  • LinusGeffarth
    LinusGeffarth over 4 years

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

  • jalagrange
    jalagrange over 9 years
    LOL, happy to help :)
  • mikeLspohn
    mikeLspohn about 9 years
    Any idea how to fix this if you don't have a test target?
  • Joseph Selvaraj
    Joseph Selvaraj over 8 years
    How to remove build settings?
  • Rizwan Awan
    Rizwan Awan over 8 years
    @JosephSelvaraj Check the selected answer: stackoverflow.com/a/26812114/4396941