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
Schritte zum Reproduzieren des Problems:
1.npm install --save React-native-onesignal
Noch etwas:
(Absturz-Stacktraces, sowie alle anderen Informationen hier)
@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
für alle Mitreisenden,
-->> https://github.com/OneSignal/OneSignal-Flutter-SDK/issues/55#issuecomment -459369818
@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?
Hilfreichster Kommentar
@cfmitrah Bitte versuchen Sie
cd
in das Verzeichnis/ios
und führen Siepod repo update
.Wenn das nicht funktioniert, poste bitte dein Podfile