Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[!] The 'Pods-Runner' target has frameworks with conflicting names: openssl.xcframework. #2

Open
ivangalkindeveloper opened this issue Mar 10, 2023 · 0 comments

Comments

@ivangalkindeveloper
Copy link

Hello, there was a problem with two flutter packets for identification of the person:
https://pub.dev/packages/flutter_idensic_mobile_sdk_plugin
https://pub.dev/packages/idenfy_sdk_flutter

When reinstalling pods, I get the following message:
[!] The 'Pods-Runner' target has frameworks with conflicting names: openssl.xcframework.

Reinstalling log:

Removing pod
Removing sandbox-pod
Successfully uninstalled cocoapods-1.12.0
Successfully uninstalled cocoapods-core-1.12.0
Successfully uninstalled cocoapods-downloader-1.6.3
Fetching cocoapods-1.12.0.gem
Fetching cocoapods-downloader-1.6.3.gem
Fetching cocoapods-core-1.12.0.gem
Successfully installed cocoapods-downloader-1.6.3
Successfully installed cocoapods-core-1.12.0
Successfully installed cocoapods-1.12.0
Parsing documentation for cocoapods-downloader-1.6.3
Installing ri documentation for cocoapods-downloader-1.6.3
Parsing documentation for cocoapods-core-1.12.0
Installing ri documentation for cocoapods-core-1.12.0
Parsing documentation for cocoapods-1.12.0
Installing ri documentation for cocoapods-1.12.0
Done installing documentation for cocoapods-downloader, cocoapods-core, cocoapods after 3 seconds
3 gems installed
Setup completed
Updating local specs repositories
Analyzing dependencies
Pre-downloading: `FirebaseFirestore` from `https://github.com/invertase/firestore-ios-sdk-frameworks.git`, tag `10.6.0`
FirebaseFirestore/AutodetectLeveldb: subspec would include leveldb if used directly or by default.
firebase_analytics: Using Firebase SDK version '10.3.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '10.3.0' defined in 'firebase_core'
Warning: firebase_app_id_file.json file does not exist. This may cause issues in upload-symbols. If this error is unexpected, try running flutterfire configure again.
firebase_crashlytics: Using Firebase SDK version '10.3.0' defined in 'firebase_core'
firebase_performance: Using Firebase SDK version '10.3.0' defined in 'firebase_core'
Downloading dependencies
Installing Castle (3.0.7)
Installing FBAEMKit (15.1.0)
Installing FBAudienceNetwork (6.12.0)
Installing FBSDKCoreKit (15.1.0)
Installing FBSDKCoreKit_Basics (15.1.0)
Installing FMDB (2.7.5)
Installing Firebase (10.3.0)
Installing FirebaseABTesting (10.6.0)
Installing FirebaseAnalytics (10.3.0)
Installing FirebaseCore (10.3.0)
Installing FirebaseCoreInternal (10.6.0)
Installing FirebaseCrashlytics (10.3.0)
Installing FirebaseFirestore (10.6.0)
Installing FirebaseInstallations (10.6.0)
Installing FirebasePerformance (10.3.0)
Installing FirebaseRemoteConfig (10.6.0)
Installing Flutter (1.0.0)
Installing FreshchatSDK (5.4.4)
Installing GoogleAppMeasurement (10.3.0)
Installing GoogleDataTransport (9.2.1)
Installing GoogleUtilities (7.11.0)
Installing IdensicMobileSDK (1.23.0)
Installing OpenSSL-Universal (1.1.1900)
Installing OrderedSet (5.0.0)
Installing PromisesObjC (2.2.0)
Installing ReachabilitySwift (5.0.0)
Installing Sentry (7.31.5)
Installing TwilioVideo (4.6.3)
Installing ZIPFoundation (0.9.11)
Installing audio_session (0.0.1)
Installing camera_avfoundation (0.0.1)
Installing castle_flutter (2.0.8)
Installing connectivity_plus (0.0.1)
Installing contacts_service (0.2.2)
Installing device_info_plus (0.0.1)
Installing facebook_app_events (0.0.1)
Installing firebase_analytics (10.1.5)
Installing firebase_core (2.7.1)
Installing firebase_crashlytics (3.0.16)
Installing firebase_performance (0.9.0-15)
Installing flutter_idensic_mobile_sdk_plugin (1.23.0)
Installing flutter_inappwebview (0.0.1)
Installing flutter_native_splash (0.0.1)
Installing flutter_secure_storage (6.0.0)
Installing freshchat_sdk (0.10.3)
Installing iDenfySDK (7.8.0)
Installing idenfy_sdk_flutter (2.0.9)
Installing image_picker_ios (0.0.1)
Installing just_audio (0.0.1)
Installing local_auth_ios (0.0.1)
Installing lottie-ios (3.5.0)
Installing nanopb (2.30909.0)
Installing package_info_plus (0.4.5)
Installing path_provider_foundation (0.0.1)
Installing permission_handler_apple (9.0.4)
Installing share_plus (0.0.1)
Installing shared_preferences_foundation (0.0.1)
Installing smart_auth (0.0.1)
Installing sms_autofill (0.0.1)
Installing sqflite (0.0.2)
Installing store_redirect (0.0.1)
Installing url_launcher_ios (0.0.1)
Installing video_player_avfoundation (0.0.1)
Installing wakelock (0.0.1)
Installing webview_flutter_wkwebview (0.0.1)
[!] The 'Pods-Runner' target has frameworks with conflicting names: openssl.xcframework. 

My Podfile:

# Uncomment this line to define a global platform for your project
platform :ios, '14.0'

source 'https://cdn.cocoapods.org/'
source 'https://github.com/SumSubstance/Specs.git'

# SumSub - Enable MRTDReader (NFC) module
ENV['IDENSIC_WITH_MRTDREADER'] = 'true'

# SumSub - Enable VideoIdent module
ENV['IDENSIC_WITH_VIDEOIDENT'] = 'true'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

project 'Runner', {
  'Debug' => :debug,
  'Profile' => :release,
  'Release' => :release,
}

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  unless File.exist?(generated_xcode_build_settings_path)
    raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
  end

  File.foreach(generated_xcode_build_settings_path) do |line|
    matches = line.match(/FLUTTER_ROOT\=(.*)/)
    return matches[1].strip if matches
  end
  raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

target 'Runner' do
  pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '10.6.0'

  use_frameworks!
  use_modular_headers!

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)

    # IdenfySDK
    if target.name == "ZIPFoundation" || target.name == "lottie-ios"
      target.build_configurations.each do |config|
        config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
      end
    end
    if target.name == "idenfy_sdk_flutter"
      target.build_configurations.each do |config|
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
      end
    end

    # Permission Handler
    target.build_configurations.each do |config|
      config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
        '$(inherited)',
        # dart: PermissionGroup.camera
        'PERMISSION_CAMERA=1',
        # dart: PermissionGroup.photos
        'PERMISSION_PHOTOS=1',
        # dart: PermissionGroup.contacts
        'PERMISSION_CONTACTS=1',
        # dart: PermissionGroup.notification
        'PERMISSION_NOTIFICATIONS=1',
      ]
    end
  end
end

flutter doctor -v

[✓] Flutter (Channel stable, 3.7.6, on macOS 13.1 22C65 darwin-x64, locale ru-RU)
    • Flutter version 3.7.6 on channel stable at /Users/ivangalkin/Development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 12cb4eb7a0 (9 days ago), 2023-03-01 10:29:26 -0800
    • Engine revision ada363ee93
    • Dart version 2.19.3
    • DevTools version 2.20.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc1)
    • Android SDK at /Users/ivangalkin/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0-rc1
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.12.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)

[✓] VS Code (version 1.76.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.60.0

[✓] Connected device (3 available)
    • iPhone 14 Pro Max (mobile) • D2AD8C2D-46D9-4B57-8E1A-0FF7391E7459 • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-16-2 (simulator)
    • macOS (desktop)            • macos                                • darwin-x64     • macOS 13.1 22C65 darwin-x64
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome 111.0.5563.64

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Is it possible to fix this problem using two given packages?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant