简体   繁体   English

package 分辨率失败 xcode

[英]package resolution failed xcode

I am running macOS Monterey 12.4 on an M1 MBP with XCode 13.4 installed.我在安装了 XCode 13.4 的 M1 MBP 上运行 macOS Monterey 12.4。

I'm building a swiftUI project for ios and trying to connect a Firebase/FireStore DB to the project using Swift Package Manager and import: firebase-ios-sdk. I'm building a swiftUI project for ios and trying to connect a Firebase/FireStore DB to the project using Swift Package Manager and import: firebase-ios-sdk.

On doing so, I get a Package Resolution Failed message with a box and list of all the firebase-ios-sdk that could not be resolved: list这样做时,我收到一条 Package Resolution Failed 消息,其中包含一个框和所有无法解决的 firebase-ios-sdk 的列表:list

Package Resolution failed Package 解析失败

I tried deleting the derived data folder content, resetting package caches, resolving the package version, restart Xcode.我尝试删除派生数据文件夹内容,重置package缓存,解析package版本,重启Xcode。 Did not work.不工作。

Last night I uninstalled XCode and re-installing Xcode overnight.昨晚我卸载了 XCode 并一夜之间重新安装了 Xcode。 Did not work, still the same issue today.没用,今天还是一样的问题。

When I import Firebase to the.swiftui file, I get a code error message - No such module 'FirebaseCore'当我将 Firebase 导入到 .swiftui 文件时,我收到一条代码错误消息 - 没有这样的模块“FirebaseCore”

I will really appreciate your assistance, I am a Newby.我将非常感谢您的帮助,我是 Newby。

Thanks Adriaan谢谢阿德里安

UPDATE: (SOLUTION)更新:(解决方案)

Chris Parker @ https://codecrew.codewithchris.com solved the issue for me. Chris Parker @ https://codecrew.codewithchris.com为我解决了这个问题。

Here is what he wrote and it worked for me:这是他写的,对我有用:

"I just tried to install Firebase again and the problem still exists. I looked a bit closer to the options that had defaulted with regard to the Dependency rule and the option that had defaulted was “Branch”. I changed that to “Up to the next major version” and the package selections that I was expecting to see did in fact appear so that's what the problem was." “我只是尝试再次安装 Firebase,但问题仍然存在。我看起来更接近于依赖规则默认的选项,默认的选项是“分支”。我将其更改为“直到下一个主要版本”,而我期望看到的包选择确实出现了,所以这就是问题所在。”

I just want to say a really big thank you to Chris at codewithchris, he really came through for me.我只想对 codewithchris 的 Chris 表示非常感谢,他真的为我而来。

THANK YOU CHRIS PARKER谢谢克里斯·帕克

Xcode "File" -> "Packages" -> "Reset Package Caches" solved the issue for me. Xcode“文件”->“包”->“重置 Package 缓存”为我解决了这个问题。 Hopefully, it will be useful to others as well.希望它对其他人也有用。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误:包“gifski”的配置失败 - ERROR: configuration failed for package ‘gifski’ 没有这样的模块 'Firebase' - Xcode 和 Swift Package 经理 - No such module 'Firebase' - Xcode and Swift Package Manager Package 还原失败 Microsoft.WindowsAzure.Storage - Package Restore Failed Microsoft.WindowsAzure.Storage java.lang.NoClassDefFoundError:解析失败:Lcom/google/firebase/iid/FirebaseInstanceId on pusher api - java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/iid/FirebaseInstanceId on pusher api .NET Core 3.1 - 组件的依赖解析失败 - AWS Mock Lambda 测试工具 - .NET Core 3.1 - Dependency resolution failed for component - AWS Mock Lambda Test Tools 安装电报机器人 api package 失败 - installing telegram bot api package failed Azure Devops 管道返回:'无法将 web package 部署到应用服务。 内部服务器错误(代码:500)' - Azure Devops Pipeline returning: 'Failed to deploy web package to App Service. Internal Server Error (CODE: 500)' Azure function 部署失败:“上传内置内容时 SCM_RUN_FROM_PACKAGE 格式错误” - Azure function deployment failed: "Malformed SCM_RUN_FROM_PACKAGE when uploading built content" 通过终端设置Firebase和Xcode中的Github package链接有什么区别? - What are the differences between setting up Firebase via Terminal and Github package link in Xcode? AWS Spot 实例引导失败:package amazon-ssm-agent 已安装 - AWS Spot Instance bootstrap failed : package amazon-ssm-agent is already installed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM