xcode - "the Package.resolved file is most likely severely out-of-date and is preventing correct resolution"

标签 xcode swift-package-manager

尝试构建时出现以下错误。它也显示为构建日志中的唯一项目。
Package Loading: the Package.resolved file is most likely severely out-of-date and is preventing correct resolution; delete the resolved file and try again
以下是我正在使用的软件包:
5 Swift packages listed in the project settings: SimpleLogging, OptionalTools, FunctionTools, SpecialString, and Swift-TODO. The first 3 are URLs to git files (they end in .git), and the last 2 are URLs to the repos themselves (they end in a slash). The same 5 packages as above, but listed in the sidebar, proving they were resolved successfully.

最佳答案

对我来说,事实证明,即使 Xcode 能够解析和克隆这些包,它也不喜欢其中 2 个指向 GitHub 存储库页面,而不是 git 文件版本。
将它们更改为全部 .git网址修复了它:
The same project package list as above, but none end in a slash; all end in .git

关于xcode - "the Package.resolved file is most likely severely out-of-date and is preventing correct resolution",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63079909/

相关文章:

iphone - 选择器方法从未在 NSNotificationCenter 中调用

c - OSX 10.5.8 下出现 undefined symbol 错误

swift - 在 SPM 项目中使用 vDSP_normalizeD 时出现 nil 编译器错误

ios - 抑制来 self 的 SPM 包的所有警告

swift - 替代 swift build --clean?

ios - EXC_BREAKPOINT 当返回到 ScrollView 中的 imgview View 时

objective-c - 如何对 NSComboBox 内容进行排序

iphone - 确定 CGPoint 是否在图像区域内

ios - 如何解决 XCode 13.3 中的 SwiftPM.SPMRepositoryError 错误 3

objective-c - Linux 上的 Swift Objective-C 互操作性,错误 : 'Foundation/Foundation.h' file not found