yandex-ads-sdk-ios icon indicating copy to clipboard operation
yandex-ads-sdk-ios copied to clipboard

Target has frameworks with conflicting names

Open vostreltsov opened this issue 2 years ago • 2 comments

При добавлении подов:

pod 'YooKassaPayments', :git => 'https://git.yoomoney.ru/scm/sdk/yookassa-payments-swift.git', :tag => '6.9.2'
pod 'YandexMobileAds'

и выполнении pod install получается ошибка:

The 'XXX' target has frameworks with conflicting names: yandexmobilemetrica.xcframework and yandexmobilemetricacrashes.xcframework

Как мне одновременно использовать юкассу и яндекс адс?

vostreltsov avatar Nov 03 '22 16:11 vostreltsov

@yandexmobile @mobile-ads-github ?

vostreltsov avatar Nov 06 '22 06:11 vostreltsov

Добрый день. Проблема в том, что YooKassaPayments использует 'YandexMobileMetrica/Dynamic', а YandexMobileAds использует 'YandexMobileMetrica'. Использование в одном проекте 'YandexMobileMetrica/Dynamic' и 'YandexMobileMetrica' не предусмотрено разработчиками метрики. Если есть возможность использовать YooKassaPayments с использованием пода 'YandexMobileMetrica' - то это решит проблему.

Мы с командой метрики попробуем найти решение чтобы таких конфликтов не возникало.

mobile-ads-github avatar Nov 14 '22 12:11 mobile-ads-github

@mobile-ads-github, доброго времени суток

А можно подробнее о том как это можно сделать? Пытаюсь добавить в проект https://pub.dev/packages/yookassa_payments_flutter

Версия проекта

[✓] Flutter (Channel stable, 3.16.8, on macOS 14.1.2 23B92 darwin-x64, locale ru-RU)
    • Flutter version 3.16.8 on channel stable at /Users/username/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 67457e669f (4 weeks ago), 2024-01-16 16:22:29 -0800
    • Engine revision 6e2ea58a5c
    • Dart version 3.2.5

Но при установке pod получаю конфликт с другим пакетом от yandex:

username@MacBook-Pro ios % pod cache clean --all && pod deintegrate && pod install --repo-update
Ignoring digest-crc-0.6.4 because its extensions are not built. Try: gem pristine digest-crc --version 0.6.4
Ignoring unf_ext-0.0.8.2 because its extensions are not built. Try: gem pristine unf_ext --version 0.0.8.2
Ignoring digest-crc-0.6.4 because its extensions are not built. Try: gem pristine digest-crc --version 0.6.4
Ignoring unf_ext-0.0.8.2 because its extensions are not built. Try: gem pristine unf_ext --version 0.0.8.2
Deintegrating `Runner.xcodeproj`
Removing `Pods` directory.

Project has been deintegrated. No traces of CocoaPods left in project.
Note: The workspace referencing the Pods project still remains.
Ignoring digest-crc-0.6.4 because its extensions are not built. Try: gem pristine digest-crc --version 0.6.4
Ignoring unf_ext-0.0.8.2 because its extensions are not built. Try: gem pristine unf_ext --version 0.0.8.2
Updating local specs repositories
Cloning spec repo `cocoapods` from `https://github.com/CocoaPods/Specs.git`
Cloning spec repo `yoomoney-scm-sdk-cocoa-pod-specs` from `https://git.yoomoney.ru/scm/sdk/cocoa-pod-specs.git`
  $ /usr/local/bin/git -C /Users/ivanpomytkin/.cocoapods/repos/cocoapods fetch origin --progress
  remote: Enumerating objects: 28, done.        
  remote: Counting objects: 100% (28/28), done.        
  remote: Compressing objects: 100% (18/18), done.        
  remote: Total 18 (delta 11), reused 0 (delta 0), pack-reused 0        
  From https://github.com/CocoaPods/Specs
     794f4b4e76f5..0f54f375ddf8  master     -> origin/master
  $ /usr/local/bin/git -C /Users/ivanpomytkin/.cocoapods/repos/cocoapods rev-parse --abbrev-ref HEAD
  master
  $ /usr/local/bin/git -C /Users/ivanpomytkin/.cocoapods/repos/cocoapods reset --hard origin/master
  HEAD is now at 0f54f375ddf8 [Add] BlueIDAccessSDK 0.72.0
  $ /usr/local/bin/git -C /Users/ivanpomytkin/.cocoapods/repos/yoomoney-scm-sdk-cocoa-pod-specs fetch origin --progress
  $ /usr/local/bin/git -C /Users/ivanpomytkin/.cocoapods/repos/yoomoney-scm-sdk-cocoa-pod-specs rev-parse --abbrev-ref HEAD
  master
  $ /usr/local/bin/git -C /Users/ivanpomytkin/.cocoapods/repos/yoomoney-scm-sdk-cocoa-pod-specs reset --hard origin/master
  HEAD is now at dbcf2ec [Update] MoneyAuth (10.12.0)
Analyzing dependencies
firebase_core: Using Firebase SDK version '10.18.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '10.18.0' defined in 'firebase_core'
Downloading dependencies
Installing DKImagePickerController (4.3.4)
Installing DKPhotoGallery (0.0.17)
Installing FMDB (2.7.5)
Installing Firebase (10.18.0)
Installing FirebaseCore (10.18.0)
Installing FirebaseCoreInternal (10.21.0)
Installing FirebaseInstallations (10.21.0)
Installing FirebaseMessaging (10.18.0)
Installing Flutter (1.0.0)
Installing FunctionalSwift (2.0.6)
Installing GoogleDataTransport (9.3.0)
Installing GoogleUtilities (7.12.0)
Installing MobileSdk (2.0.0)
Installing MoneyAuth (10.2.1)
Installing OrderedSet (5.0.0)
Installing PromisesObjC (2.3.1)
Installing SDWebImage (5.18.11)
Installing SPaySDK (1.0.9)
Installing SwiftyGif (5.4.4)
Installing YandexMapsMobile (4.4.0-full)
Installing YandexMobileMetrica (4.5.2)
Installing YooKassaPayments (6.14.0)
Installing YooKassaPaymentsApi (2.21.3)
Installing YooKassaWalletApi (2.3.2)
Installing YooMoneyCoreApi (3.0.7)
Installing YooMoneySessionProfiler (5.0.1)
Installing YooMoneyUI (7.3.2)
Installing appmetrica_plugin (1.4.0)
Installing device_info_plus (0.0.1)
Installing downloads_path_provider_28 (0.0.1)
Installing file_picker (0.0.1)
Installing firebase_core (2.24.2)
Installing firebase_messaging (14.7.9)
Installing flutter_downloader (0.0.1)
Installing flutter_inappwebview (0.0.1)
Installing flutter_keyboard_visibility (0.0.1)
Installing flutter_local_notifications (0.0.1)
Installing flutter_native_splash (0.0.1)
Installing geolocator_apple (1.2.0)
Installing image_picker_ios (0.0.1)
Installing nanopb (2.30909.1)
Installing open_file_plus (1.0.0)
Installing package_info_plus (0.4.5)
Installing path_provider_foundation (0.0.1)
Installing permission_handler_apple (9.1.1)
Installing shared_preferences_foundation (0.0.1)
Installing sqflite (0.0.3)
Installing uni_links (0.0.1)
Installing url_launcher_ios (0.0.1)
Installing video_player_avfoundation (0.0.1)
Installing yandex_mapkit (0.0.1)
Installing yookassa_payments_flutter (0.0.1)
[!] The 'Pods-Runner' target has frameworks with conflicting names: yandexmobilemetrica.xcframework and yandexmobilemetricacrashes.xcframework.

[!] Found multiple specifications for `FunctionalSwift (1.6.7)`:
- /Users/username/.cocoapods/repos/cocoapods/Specs/0/2/2/FunctionalSwift/1.6.7/FunctionalSwift.podspec.json
- /Users/username/.cocoapods/repos/yoomoney-scm-sdk-cocoa-pod-specs/FunctionalSwift/1.6.7/FunctionalSwift.podspec

[!] Found multiple specifications for `FunctionalSwift (1.2.0)`:
- /Users/username/.cocoapods/repos/cocoapods/Specs/0/2/2/FunctionalSwift/1.2.0/FunctionalSwift.podspec.json
- /Users/username/.cocoapods/repos/yoomoney-scm-sdk-cocoa-pod-specs/FunctionalSwift/1.2.0/FunctionalSwift.podspec

Что можно сделать с этим?

perfperm avatar Feb 13 '24 15:02 perfperm