Xcode fails without specifying and errors

前端 未结 22 1726
栀梦
栀梦 2021-02-12 13:27

All of a sudden my project fails to build in Xcode. If I look at the log I see all the needed dependencies being built, and then I get a strange error:

Verify fi         


        
相关标签:
22条回答
  • 2021-02-12 13:36

    The only workaround, that works for me - push your code to git repo and clone it to new location. I highly recommend to reclone your repo, because you'll deal with some random problems if you prefer rebooting/turning off and onXcode.

    0 讨论(0)
  • 2021-02-12 13:38

    I looked around for a bit and the only one that worked for me was shortening my project folder name.

    All other tries: restarting, recloning, deleting derived data, etc. didn't work. The only thing that worked was making the project folder name shorter.

    0 讨论(0)
  • 2021-02-12 13:38

    None of these answers worked for me on XCode 5.

    Luckily, I'm still only testing XCode 5 - I kept XCode 4 around.

    XCode 5 simply won't build one of my two projects, claiming that my libraries aren't built with the right settings, and I keep running into the error described on this page on the other one... so I'm sticking with XCode 4, which builds both of my projects perfectly well.

    If you are experiencing this issue on XCode 5, consider "reverting to XCode 4" as another strategy.

    Overall the idea that repeatedly running a program, XCode or not, degrades your system to the point where you have to reboot does not fill me with confidence in that program.

    0 讨论(0)
  • 2021-02-12 13:39

    Same issue when added watchOS target inside iOS app, using Xcode 11.1 with SwiftUI:

    • Go to menu Xcode / Preferences / Locations
    • Open Derived Data folder in Finder clicking on the arrow next to /Users/yourUserName/Library/Developer/Xcode/DerivedData
    • Locate your app Derived Data folder and delete it
    • Menu Product / Clean Build Folder

    You should be able to compile again.

    0 讨论(0)
  • 2021-02-12 13:42

    Happy 2019, everyone, but sad to say this can still happen in Xcode 10.2.

    I had four projects open in Xcode but only one failed in this way. I tried a main menu > Product > Clean Build Folder. The little progress spinner started up and 5 minutes later was still spinning. Hmmmm.

    So I quit Xcode and in Terminal did a cd ~/Library/Developer/Xcode/DerivedData. Although ls -alww showed only one subfolder named after each of my other projects, as expected, there were five subfolders whose name began with the name of the problem project. I deleted all of them

    rm -R ProblemProjectName-*

    and relaunched Xcode. Problem solved.

    0 讨论(0)
  • 2021-02-12 13:47

    I also encountered same error. I was edited .pch (Prefix Header) file. Then I started getting this strange error. Then I removed all editions which I made in .PCH. Then I quit my Xcode. When I restarted Xcode this strange error was gone.

    Hope this will work for you also. Best luck Buddy (y)

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