Добавление динамических ссылок cordova-plugin-firebase-dynamic в проект Ioni c 4 делает невозможным сборку - PullRequest
0 голосов
/ 24 января 2020

Буду признателен за любые рекомендации по разрешению конфликта с плагинами при создании приложения Ioni c 4 Cordova для IOS w xcode.

Ниже приведены мои рабочие плагины - т.е. проект успешно собирается с этими плагинами.

НО, при попытке добавить cordova-plugin-firebase-dynamiclinks с использованием:

$ cordova plugin add cordova-plugin-firebase-dynamiclinks --variable APP_DOMAIN="example.ca" --variable PAGE_LINK_DOMAIN="example.page.link";

добавление завершается с ошибкой:

    Failed to install 'cordova-plugin-firebase-dynamiclinks': Error: pod: Command failed with exit code 31
    at ChildProcess.whenDone (/Users/name/project/node_modules/cordova-common/src/superspawn.js:135:23)
    at ChildProcess.emit (events.js:198:13)
    at maybeClose (internal/child_process.js:982:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
pod: Command failed with exit code 31

Как выяснилось при поиске, я попробовал:

платформы / ios / pod, обновление репозитория, платформы / ios / pod install

, которые успешно выполняются до добавления cordova-plugin-firebase-dynamiclinks

МОЙ РАБОЧИЙ КОМПЛЕКТ ПЛАГИНОВ (эти сборки с успехом до добавления плагина динамических ссылок):

cordova-plugin-androidx 1.0.2 "cordova-plugin-androidx"
cordova-plugin-androidx-adapter 1.1.0 "cordova-plugin-androidx-adapter"
cordova-plugin-datepicker 0.9.3 "DatePicker"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-firebasex 7.0.1 "Google Firebase Plugin"
cordova-plugin-google-analytics 1.8.6 "Google Universal Analytics Plugin"
cordova-plugin-googleplus 8.2.1 "Google SignIn"
cordova-plugin-inappbrowser 3.2.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 4.1.3 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.3 "Splashscreen"
cordova-plugin-statusbar 2.4.3 "StatusBar"
cordova-plugin-whitelist 1.3.4 "Whitelist"
cordova-sqlite-storage 3.4.1 "Cordova sqlite storage plugin - cordova-sqlite-storage plugin version"
cordova-support-google-services 1.3.2 "cordova-support-google-services" 

IONI C ИНФОРМАЦИЯ:

Иони c CLI: 5.4.15 (/ usr / local / lib / node_modules / ioni c) Ioni c Framework: @ ionic / angular 4.11.8 @ angular -devkit / build- angular: 0.800.6 @ angular -devkit / schematics: 8.1.3 @ angular / cli: 8.2.2 @ ionic / angular -toolkit: 2.0.0

Cordova:

Cordova CLI: 9.0. 0 (cordova-lib@9.0.1) Платформы Cordova: ios 5.1.1 Плагины Cordova: cordova-plugin-ioni c -keyboard 2.2.0, cordova-plugin-ioni c -webview 4.1.3, (и еще 14 плагины)

Утилита:

cordova-res: 0.8.1, собственный запуск (доступно обновление: 0.3.0): 0.2.8

Система:

ios -сим: 8.0.2 NodeJS: v10.16.3 (/ usr / local / bin / node) npm: 6.13.6 ОС: macOS Mojave Xcode: Xcode 11.3.1 Версия сборки 11C504

1 Ответ

0 голосов
/ 24 февраля 2020

cordova-plugin-firebase-dynamiclinks конфликт с cordova-plugin-firebasex.

, поэтому вам нужно синхронизировать c Firebase Dependency

посмотрите пример подфайла

    pod 'Firebase/Core', '6.17.0'
    pod 'Firebase/Auth', '6.17.0'
    pod 'Firebase/Messaging', '6.17.0'
    pod 'Firebase/Performance', '6.17.0'
    pod 'Firebase/RemoteConfig', '6.17.0'

версия firebase '6.17.0'. это из-за firebasex

, поэтому вы должны изменить plugins/cordova-plugin-firebase-dynamiclinks/plugin.xml

<pods>
    <pod name="Firebase/Analytics" spec="~> 6.17.0" />
    <pod name="Firebase/DynamicLinks" spec="~> 6.17.0" />
</pods>

, оно должно совпадать с зависимостью Firebasex от Firebasex.

...