error: Unable to resolve build file: XCBCore.BuildFile

前端 未结 18 2698
旧时难觅i
旧时难觅i 2020-12-14 13:49
error: Unable to resolve build file: XCBCore.BuildFile (missingTargetProductReference(\"3bf83096e50de72a94699e9afc1133ebe3512682230d04680075c283a974e273\")) (in targ         


        
相关标签:
18条回答
  • 2020-12-14 14:29

    This was the culprit for my experience of the same error: missing Command Line Tools setting

    After setting the correct version of Command Line Tools (i.e., Xcode 10.2.1; see below) on my system, the error went away!

    correct Command Line Tools setting

    0 讨论(0)
  • 2020-12-14 14:32

    Seems like there are a number of reasons for which one runs into the same error. For my case, it was not having the Submodule checked out locally. After I made sure all my Submodules were downloaded, the error went away.

    0 讨论(0)
  • 2020-12-14 14:35

    The key here is missingTargetProductReference, or you might get namedReferencesCannotBeResolved. Xcode can't find something.

    This happened after upgrading to Swift5/Xcode10.

    I found that removing linked frameworks and then re-adding them fixed the issue.

    0 讨论(0)
  • 2020-12-14 14:35

    The problem is that on new xcode 10.2 there is a new BUILD Configuration, you need to change to LEGACY.

    You can check how to change it here: https://medium.com/xcblog/five-things-you-must-know-about-xcode-10-new-build-system-41676cd5fd6c . CHECK THE GIF

    So if you have a newer version of xcode different than the one used when the project was working probably this is what is causing the issue.

    0 讨论(0)
  • 2020-12-14 14:35

    I've faced the problem in Xcode 10.1.2. Xcode restarting and the clean project solve it in my case.

    0 讨论(0)
  • 2020-12-14 14:36

    For me, XCode > Product > Clean Build Folder and restart Xcode then worked.

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