skip to Main Content

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

Package Resolution failed

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

2

Answers


  1. Chosen as BEST ANSWER

    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


  2. Xcode "File" -> "Packages" -> "Reset Package Caches" solved the issue for me. Hopefully, it will be useful to others as well.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search