无法解析构建文件:使用 GUID 引用缺失的目标 [英] Unable to Resolve Build File: Reference to Missing Target with GUID

查看:56
本文介绍了无法解析构建文件:使用 GUID 引用缺失的目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在 GitHub 上创建了一个 iOS 库,以添加对 Swift Package Manager 的支持.这是存储库:https://github.com/skelpo/mapbox-gl-native-ios

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

当我将它添加到一个全新的 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.

我已经尝试过清理构建文件夹、删除派生数据并重新启动 Xcode,但这并没有帮助.

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?

推荐答案

我最近在升级到 Xcode 12 后遇到了类似的问题,并为我的情况找到了解决方案.

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

导致解决方案的主要提示来自 Aaron 5 月 3 日, 此页面上的 2019 年答案.

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

为我修复的是选择 Xcode 项目的根目录,并将项目格式从Xcode 11.0-compatible"更改为到XCode 12.0 兼容".

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".

这篇关于无法解析构建文件:使用 GUID 引用缺失的目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆