-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding firebase-ios-sdk to Xcode Swift Packages, as well as depending on it in a local Swift Package causes packages to fail to resolve consistently.
#7363
Comments
|
Thanks for the report. It's almost certainly a Swift Package Manager bug and I recommend reporting there also. It looks similar to https://forums.swift.org/t/problem-in-xcode-project-to-get-all-dependencies/42287. |
|
@paulb777 Thanks, I agree. I added to the thread that you linked to. Overall the SPM<>Xcode integration seems quite buggy. |
|
Thanks @jondwillis. I would add the distinction about SPM <> Xcode integration bugginess specifically for binary packages. The source package integration has been more stable. |
|
@jondwillis Does Xcode 12.5 address this? |
|
@paulb777 ...sort of! ... with some changes, thanks to improved Xcode-SPM error messaging. For context, this was my local swift package's Package.swift: Without any changes to my example project in Xcode 12.5 beta, I received the following error when resolving packages: I decided to bump to version to 7.6.0 at this time, and remove the firebase dependency from my project's Swift packages. Then I tried changing the local dependency's dependencies package name to Which allowed the dependency's dependency to resolve. However, when re-adding Firebase to my project's Swift package, I got another error: Seems circular! That then led me to the solution, removing the project's Firebase dependency again, then adding an explicit name to my local dependency's product dependencies, and re-adding my projects Firebase dependency (including in case the order here matters): I updated my toy project repo with the working solution. |
|
@jondwillis Thanks for sharing your journey and solution. I'm going to close since the sporadic functionality is almost certainly a Swift Package Manager and not specifically the Firebase implementation. |
[REQUIRED] Step 1: Describe your environment
Swift Package Manager[REQUIRED] Step 2: Describe the problem
Steps to reproduce:
(See example project linked at the bottom)
adding
firebase-ios-sdkto Xcode Swift Packages, as well as depending on it in a local Swift Package causes packages to fail to resolve consistently.The Results:
The (Workaround) Solution:
Some combination of closing Xcode, Resetting Package Cache, and Updating Package Dependencies can resolve it temporarily.
Relevant Code:
https://github.com/jondwillis/FirebaseSPMBug
The text was updated successfully, but these errors were encountered: