Google Analytics с использованием плагина cordova не работает в ionic 5 , angular 12 и конденсаторе v3

#ios #cordova #ionic-framework #google-analytics #capacitor

#iOS #кордова #ионный каркас #google-аналитика #конденсатор

Вопрос:

Я использую ионный угол с конденсатором в своем проекте, я столкнулся с одной ошибкой при создании сборки iOS. ошибка, основанная на Google analytics, ниже имени пакета npm, которое я использую для интеграции Google Analytics в свой проект

npm установит cordova-плагин-google-аналитика

установка npm @ionic-родной/google-аналитика

Пока я использую эту команду «ionic cap sync ios» Приведенная выше команда используется для

  • Выполните ионную сборку, которая компилирует веб-ресурсы
  • Копирование веб-ресурсов на собственную платформу(платформы)
  • Обновите собственные платформы и зависимости конденсатора
  • Установите любой обнаруженный конденсатор или плагины Cordova

Поэтому, как только я выполнил команду, терминал выдал мне следующую ошибку

 ✔ Updating iOS plugins in 17.16ms [capacitor] [info] Found 1 Capacitor plugin for ios: [capacitor] @capacitor/splash-screen@1.1.6 [capacitor] [info] Found 12 Cordova plugins for ios: [capacitor] cordova-plugin-actionsheet@2.3.3 [capacitor] cordova-plugin-appavailability@0.4.2 [capacitor] cordova-plugin-device@2.0.3 [capacitor] cordova-plugin-dialogs@2.0.2 [capacitor] cordova-plugin-email-composer@0.9.2 [capacitor] cordova-plugin-file-opener2@3.0.5 [capacitor] cordova-plugin-geolocation@4.1.0 [capacitor] cordova-plugin-google-analytics@1.9.0 [capacitor] cordova-plugin-inappbrowser@5.0.0 [capacitor] cordova-plugin-nativegeocoder@3.4.1 [capacitor] phonegap-plugin-barcodescanner@8.1.0 [capacitor] uk.co.workingedge.phonegap.plugin.launchnavigator@5.0.6 [capacitor] ✖ Updating iOS native dependencies with pod install - failed! [capacitor] ✖ update ios - failed! [capacitor] [error] Analyzing dependencies [capacitor] Downloading dependencies [capacitor] Installing Capacitor (3.2.5) [capacitor] Installing CapacitorCordova (3.2.5) [capacitor] Installing CapacitorSplashScreen (1.1.6) [capacitor] Installing CordovaPlugins (3.2.5) [capacitor] Installing CordovaPluginsResources (0.0.105) [capacitor] Installing GoogleAnalytics (3.17.0) [capacitor] Installing GoogleIDFASupport (3.14.0) [capacitor] [!] The 'Pods-App' target has transitive dependencies that include statically linked binaries: (/Users/useName/Documents/GitHub/MyApp/ios/App/Pods/GoogleAnalytics/Libraries/libGoogleAnalytics.a and /Users/useName/Documents/GitHub/MyApp/ios/App/Pods/GoogleIDFASupport/Libraries/libAdIdAccessLibrary.a) [capacitor]  [ERROR] An error occurred while running subprocess capacitor.    capacitor sync exited with exit code 1.  

Версия Pod(cocoapods) с использованием 1.11.2

файл package.json приведен ниже

 {  "name": "myApp",  "version": "0.0.1",  "author": "Ionic Framework",  "homepage": "https://ionicframework.com/",  "scripts": {  "ng": "ng",  "start": "ng serve",  "build": "ng build",  "test": "ng test",  "lint": "ng lint",  "e2e": "ng e2e",  "sonar": "sonar-scanner"  },  "private": true,  "dependencies": {  "@angular/common": "~12.2.11",  "@angular/core": "~12.2.11",  "@angular/forms": "~12.2.11",  "@angular/google-maps": "^12.2.11",  "@angular/platform-browser": "~12.2.11",  "@angular/platform-browser-dynamic": "~12.2.11",  "@angular/router": "~12.2.11",  "@angular/service-worker": "~12.2.11",  "@capacitor/android": "~3.3.1",  "@capacitor/core": "~3.3.1",  "@capacitor/ios": "~3.3.1",  "@capacitor/splash-screen": "1.1.6",  "@ionic-native/app-availability": "^5.36.0",  "@ionic-native/barcode-scanner": "^5.36.0",  "@ionic-native/core": "^5.36.0",  "@ionic-native/device": "^5.36.0",  "@ionic-native/email-composer": "^5.36.0",  "@ionic-native/file-opener": "^5.36.0",  "@ionic-native/geolocation": "^5.36.0",  "@ionic-native/google-analytics": "^5.36.0",  "@ionic-native/in-app-browser": "^5.36.0",  "@ionic-native/launch-navigator": "^5.36.0",  "@ionic-native/native-geocoder": "^5.36.0",  "@ionic-native/status-bar": "^5.36.0",  "@ionic/angular": "5.8.4",  "@ionic/storage-angular": "^3.0.6",  "@ngx-translate/core": "^13.0.0",  "@ngx-translate/http-loader": "^6.0.0",  "classlist.js": "^1.1.20150312",  "cordova-plugin-actionsheet": "^2.3.3",  "cordova-plugin-appavailability": "^0.4.2",  "cordova-plugin-device": "^2.0.3",  "cordova-plugin-dialogs": "^2.0.2",  "cordova-plugin-email-composer": "^0.9.2",  "cordova-plugin-file-opener2": "^3.0.5",  "cordova-plugin-geolocation": "^4.1.0",  "cordova-plugin-google-analytics": "^1.9.0",  "cordova-plugin-inappbrowser": "^5.0.0",  "cordova-plugin-nativegeocoder": "^3.4.1",  "ionic4-rating": "^1.0.9",  "jetifier": "^2.0.0",  "ngx-google-analytics": "^11.2.1",  "phonegap-plugin-barcodescanner": "^8.1.0",  "rxjs": "^6.5.0",  "tslib": "^2.3.1",  "uk.co.workingedge.phonegap.plugin.launchnavigator": "^5.0.6",  "uuid": "^8.3.2",  "zone.js": "~0.11.4"  },  "devDependencies": {  "@angular-devkit/build-angular": "~12.2.11",  "@angular/cli": "~12.2.11",  "@angular/compiler": "~12.2.11",  "@angular/compiler-cli": "~12.2.11",  "@angular/language-service": "~12.2.11",  "@capacitor/cli": "3.2.5",  "@ionic/angular-toolkit": "^4.0.0",  "@ionic/lab": "3.2.10",  "@types/googlemaps": "^3.39.12",  "@types/jasmine": "~3.10.0",  "@types/jasminewd2": "~2.0.10",  "@types/node": "^16.11.1",  "codelyzer": "^6.0.2",  "jasmine-core": "~3.10.0",  "jasmine-spec-reporter": "~7.0.0",  "karma": "~6.3.4",  "karma-chrome-launcher": "~3.1.0",  "karma-coverage-istanbul-reporter": "~3.0.3",  "karma-jasmine": "~4.0.1",  "karma-jasmine-html-reporter": "^1.7.0",  "protractor": "~7.0.0",  "sonar-scanner": "^3.1.0",  "ts-node": "~10.3.0",  "tslint": "~6.1.3",  "typescript": "~4.2.4"  },  "description": "An Ionic project" }   

Пожалуйста, помогите мне решить, что цель «Pods-приложение» имеет переходные зависимости, которые включают статически связанные двоичные файлы: проблема