error: Unable to resolve build file: XCBCore.Build

2020-02-24 12:20发布

error: Unable to resolve build file: XCBCore.BuildFile (missingTargetProductReference("3bf83096e50de72a94699e9afc1133ebe3512682230d04680075c283a974e273")) (in target 'MyTarget')

Xcode 10 is giving this error immediately when trying to build our project. It's not immediately clear what is causing it.

How can I resolve it?

18条回答
手持菜刀,她持情操
2楼-- · 2020-02-24 12:50

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.

查看更多
放我归山
3楼-- · 2020-02-24 12:51

I came across this same error while using openframeworks 0.10 with xcode 10 recently. It seems like it was caused by having multiple openframeworks projects opened at a time. If you close them all one by one, and then reopen the one you'd like to work on, it should resolve the error. Hoping this is just an xcode-beta thing.

error message

Xcode used to tell you that there as a workspace integrity problem, and you could just ignore it. But it seems like it's returned. There's some discussion about this issue here.

查看更多
\"骚年 ilove
4楼-- · 2020-02-24 12:53

I had an embedded Xcode project that was not found (light blue). Deleting it and dropping it in again solved the issue.

查看更多
贪生不怕死
5楼-- · 2020-02-24 12:54

In case this helps, I had a new repo and the Libraries weren't correctly linked.

I opened Xcode, cleaned, and went through, one by one, through Libraries on the menu. I clicked on it, which opened the info panel on the right, and pressed the small folder button, and found the path designated and clicked and opened, to make Xcode recognize those Libraries. Path names were often

/node_modules/react-native/Libraries/(something)/(something).xcodeproj
查看更多
聊天终结者
6楼-- · 2020-02-24 12:54

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

查看更多
别忘想泡老子
7楼-- · 2020-02-24 12:55

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.

查看更多
登录 后发表回答