I am running macOS Monterey 12.4 on an M1 MBP with XCode 13.4 installed.
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
I tried deleting the derived data folder content, resetting package caches, resolving the package version, restart Xcode. Did not work.
Last night I uninstalled XCode and re-installing Xcode overnight. 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'
I will really appreciate your assistance, I am a Newby.
Thanks Adriaan
UPDATE: (SOLUTION)
Chris Parker @ https://codecrew.codewithchris.com solved the issue for me.
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."
I just want to say a really big thank you to Chris at codewithchris, he really came through for me.
THANK YOU CHRIS PARKER
Xcode "File" -> "Packages" -> "Reset Package Caches" solved the issue for me. Hopefully, it will be useful to others as well.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.