Unable to Resolve Build File: Reference to Missing Target with GUID

ⅰ亾dé卋堺 提交于 2021-01-29 14:00:22

问题


I recently forked an iOS library on GitHub to add support to it for the Swift Package Manager. Here's the repository: https://github.com/skelpo/mapbox-gl-native-ios

When I add it to a completely new iOS app and try to build it, I get this error:

Unable to resolve build file: XCBCore.BuildFile (The workspace has a reference to a missing target with GUID 'PACKAGE-TARGET:Mapbox')

I've found posts for similar errors, such as this one, but the reason for the build file failing to resolve is different.

I have tried the usual cleaning the build folder, deleting derived data, and restarting Xcode, but that hasn't helped.

What is the reason for this specific resolution failure, and how would I fix it?


回答1:


I ran into a similar problem after upgrading to Xcode 12 recently, and found a fix for my case.

A major hint that led to the solution came from Aaron's May 3, 2019 answer on this page.

What fixed it for me was to select the root of the Xcode project, and change the Project Format from "Xcode 11.0-compatible" to "XCode 12.0-compatible".



来源:https://stackoverflow.com/questions/63640191/unable-to-resolve-build-file-reference-to-missing-target-with-guid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!