React-native-onesignal: CocoaPods konnte keine kompatiblen Versionen für Pod "OneSignal" finden

Erstellt am 21. Dez. 2018  ·  4Kommentare  ·  Quelle: OneSignal/react-native-onesignal

Beschreibung:

In Android war die Integration erfolgreich. jedoch in iOS nach dem Hinzufügen der unteren Zeile in der Poddatei
Pod 'reagieren-native-einssignal',
:path => "../node_modules/react-native-onesignal/react-native-onesignal.podspec",
:inhibit_warnings => wahr

Ich erhalte diesen Fehler nach der Pod-Installation
[!] CocoaPods konnte keine kompatiblen Versionen für Pod "OneSignal" finden:
In Pod-Datei:
React-native-Onesignal (von ../node_modules/react-native-onesignal/react-native-onesignal.podspec ) wurde auf 3.2.12 aufgelöst, was abhängig ist von
OneSignal (= 2.9.4)

Keine Ihrer Spezifikationsquellen enthält eine Spezifikation, die die Abhängigkeit erfüllt: OneSignal (= 2.9.4) .

Umfeld

  • "react-native-onesignal": "^3.2.12"
  • habe es mit npm hinzugefügt und mit Kakaobohnen verknüpft
  • Schritte zum Reproduzieren des Problems:

    1.npm install --save React-native-onesignal

    1. füge diese Zeile zur Pod-Datei hinzu
      Pod 'reagieren-native-einssignal',
      :path => "../node_modules/react-native-onesignal/react-native-onesignal.podspec",
      :inhibit_warnings => wahr
    2. 'pod installieren' ausführen

    Noch etwas:

    (Absturz-Stacktraces, sowie alle anderen Informationen hier)

    Hilfreichster Kommentar

    @cfmitrah Bitte versuchen Sie cd in das Verzeichnis /ios und führen Sie pod repo update .

    Wenn das nicht funktioniert, poste bitte dein Podfile

    Alle 4 Kommentare

    @cfmitrah Bitte versuchen Sie cd in das Verzeichnis /ios und führen Sie pod repo update .

    Wenn das nicht funktioniert, poste bitte dein Podfile

    Schließung wegen keiner Reaktion

    @Nightsd01 ,

    Ich bekomme diesen Fehler:

    [!] CocoaPods could not find compatible versions for pod "OneSignal":
     In Podfile:
     react-native-onesignal (from `../node_modules/react-native-onesignal`) was resolved to 3.4.2, which depends on
     OneSignal (= 2.11.2)
    
    /bin/bash failed with return code: 31
    return code: 1
    None of your spec sources contain a spec satisfying the dependency: `OneSignal (= 2.11.2)`.
    
    You have either:
     * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
     * mistyped the name or version.
     * not added the source repo that hosts the Podspec to your Podfile.
    
    Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
    

    Wenn ich die folgenden Befehle in Azure DevOps ausführe:

    cd ios && rm Podfile.lock && pod deintegrate && cd .. && rm -rf node_modules && rm package-lock.json && npm install && cd ios/ && pod install && pod repo update

    Ist das zu aggressiv? Muss ich rm Podfile.lock && pod deintegrate nicht ausführen? Wäre pod install für eine CI-Build-Tool-Konfiguration ausreichend?

    War diese Seite hilfreich?
    0 / 5 - 0 Bewertungen