error: Unable to resolve build file: XCBCore.BuildFile (missingTargetProductReference(\"3bf83096e50de72a94699e9afc1133ebe3512682230d04680075c283a974e273\")) (in targ
For me there was a different solution after none of the above worked. The problem started after using unlink for one of my packages. Then for some reason, the Package was still there under Libraries, but it was greyed. After deleting the greyed Library, everything started working again.
If you have a File Group which is backed by a physical folder and that physical folder has been deleted then you will get the same error "Unable to resolve build file: XCBCore.BuildFile". In my case the physical folder has been removed (because I removed all "real" files from it) and in XCode group there was still one external project linked.
Solution: - created a new group (without a folder) in XCode - Moved external project reference there. - rebuilt the project
Error gone.
I have the same problem. Because a folder not upload to Git server, git not allow upload empty folder, then I create a folder in project folder, and it work well. missing folder
I had an embedded Xcode project that was not found (light blue). Deleting it and dropping it in again solved the issue.
In my case, after trying all solutions in this question and some more (including updating Xcode 10.2 beta and even macOS), the only thing that worked was accessing the project bundle (right click > Show Package Contents) and remove everything except project.pbxproj
:
project.xcworkspace
xcshareddata
xcuserdata
I had correct Command Line Tools and cleaning did nothing for me.
While resolving a merge conflict, A Group named "Recovered References" had appeared in my project navigator. Probably due to a mistake I made during merging. The Group was empty and deleting it fixed my problem.