Dependencies could not be resolved because root depends on 'googleappmeasurement' 9.0.0. 'googleappmeasurement' 9.0.0 cannot be used because 'googleappmeasurement' 9.0.0 depends on 'nanopb' 2.30908.0..<2.30909.0 and root depends on 'nanopb' 2.30909.0..<2.30910.0. that is my error message, can anyone help?
Error in resolving package dependency swiftUI project
1.9k views Asked by Noura Alsulayfih At
3
There are 3 answers
0
On
Got same error and solved, check attached image, this most likely packages usage misconfiguration, as follows:
1-perhaps you are working on a branch with different Xcode version than the other developer who installed the package.
2-Perhaps some package is conflicted being used twice, by so some dependencies are duplicated.
Well to solve this you gotta try either to match the Xcode version used while installing the packages, or to remove the package that makes errors(like Firebase here), and try adding that package again your side.
0
On
I have discovered the problem has been answered here. It occurs when importing Firebase using Swift Package Manager and setting to track "master" instead of a specific release version.
I am using SDK version 8.9.1 and everything working fine, If you executed the
Resolve Package Versions
and still not working. you can try the commandReset Package Caches
from Project navigator scroll down right click onPackage Dependencies
then choose the command. that will clear all caches for all installed packages then re-install them again. if that not working i suggest you to use version 8.9.1 till Firebase fix the issue.