firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.69k stars 1.48k forks source link

Can't add Firebase Swift Package to project #9110

Closed zappyad closed 2 years ago

zappyad commented 2 years ago

[REQUIRED] Step 1: Describe your environment

[REQUIRED] Step 2: Can't add firebase via swift package manager.

I follow the instructions here: https://github.com/firebase/firebase-ios-sdk/blob/master/SwiftPackageManager.md

and add package from git but when I press Add Package XCode hangs trying to validate. I never get to see the list of firebase components in the package.

Also XCode gives a message that it is unable to load the Read Me from the git project

Steps to reproduce:

Try to add firebase to a project using package manager. The project previously used cocoapods and this was deintegrated as per instructions

rizafran commented 2 years ago

Hi @zappyad, did you get an error about the "Missing Package Description Module"? If so, it might be related to this thread wherein Xcode 13.2 has some issues with SwiftPM.

zappyad commented 2 years ago

No error message just a progress bar at 0%

Verifying firebase-ios-sdk...

Preparing to validate...

Left it a few hours and nothing happens. I am redownloading xcode 13.2 from the developer website as per that thread...

rizafran commented 2 years ago

Hi @zappyad. Is the issue still happening after re-downloading Xcode 13.2 from the Apple Developer site?

zappyad commented 2 years ago

Downloading and installing v 13.2 from the Apple developer site fixed this issue and I have been able to add packages to projects.