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

后端 未结 7 1154
醉梦人生
醉梦人生 2020-12-03 05:51

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

相关标签:
7条回答
  • 2020-12-03 06:09

    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.

    Hope that helps :)

    0 讨论(0)
  • 2020-12-03 06:12
    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
    0 讨论(0)
  • 2020-12-03 06:16

    Try, In Xcode project settings, Targets-> Tests section-> Build Settings->Linking remove all linkig

    OR Remove Tests Section as a whole.

    Build again and Its done!!

    0 讨论(0)
  • 2020-12-03 06:26

    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.

    0 讨论(0)
  • 2020-12-03 06:27

    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!

    0 讨论(0)
  • 2020-12-03 06:28

    clang can't locate your precompiled header file. Have you checked whether there is a file named SlideMenu-Prefix.pch in /Users/linus/Dropbox/Apps/My App/Projekt/My App/ ? The path to the precompiled header file is specified by the "Prefix Header" build setting for your target.

    0 讨论(0)
提交回复
热议问题