Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

package resolution failed xcode

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'

like image 481
Adriaan Avatar asked Feb 03 '26 05:02

Adriaan


1 Answers

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

like image 123
Subash Parajuli Avatar answered Feb 04 '26 17:02

Subash Parajuli