Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

861
Visualizações
XCode Failed to resolve dependency Firebase

I'm new coding on Xcode and im trying to install Firebase on my project but i have an error that i dont know how to solve. Ive followed all the instructions from Firebase but still have the issue...

First issue: Dependencies could not be resolved because no versions of 'GoogleAppMeasurement' match the requirement 8.12.0 and root depends on 'GoogleAppMeasurement' 8.12.0. Failed to resolve dependencies

Second issue: no such module 'Firebase' Cannot find 'FirebaseApp' in scope


import UIKit

import Firebase

@main
class AppDelegate: UIResponder, UIApplicationDelegate {



    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        FirebaseApp.configure()
        return true
    }

How can i fix it?

Thanks for the help :)
over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

Version 8.12.0 is still in development. Make sure to specify a release tag instead of the master branch. More details at https://github.com/google/GoogleAppMeasurement/issues/20

over 4 years ago · Santiago Trujillo Relatório

0

As Paul Beusterien correctly pointed out, we shouldn't use version 8.12.0 as it is still under development. However, I think this issue can happen when using Swift Package Manager (SPM) and 'master' as the version rule for the Firebase SDK.

After I've changed it to '8.11.0 - Next Major' everything was fetched correctly again and worked perfectly fine. Maybe it is enough to simply change the rules once.

To change the rules simply do the following (see screenshots below):

  1. Select the project in the project navigator (Shortcut CMD + 1 to open the project navigator).
  2. In the new view, you will get a list of the project and your targets. Select the project itself.
  3. Select the tab 'Package Dependencies' at the top.
  4. Double-click the 'firebase-ios-sdk' entry.
  5. Change the version rule in the dialog.

enter image description here

enter image description here

Good luck!

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda