I obtained this error Duplicate plugin key: VideoThumbnailPlugin once I run my app in Xcode I attempted a number of methods to repair it however nothing works for me.
Additionally I deleted each line that comprise thumbnail in ios/Podfile.lock however once I run pods set up the traces added routinely.
NOTE: I’ve deleted the video_thumbnail plugin early and it is nonetheless within the venture in someplace.
under the error message:
Podfile code:
platform :ios, '13.0'
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
pod 'GoogleUtilities'
venture 'Runner', {
'Debug' => :debug,
'Profile' => :launch,
'Launch' => :launch,
}
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.be part of('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
except File.exist?(generated_xcode_build_settings_path)
elevate "#{generated_xcode_build_settings_path} should exist. In the event you're operating pod set up manually, make sure that flutter pub get is executed first"
finish
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT=(.*)/)
return matches[1].strip if matches
finish
elevate "FLUTTER_ROOT not present in #{generated_xcode_build_settings_path}. Strive deleting Generated.xcconfig, then run flutter pub get"
finish
require File.expand_path(File.be part of('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
flutter_ios_podfile_setup
goal 'Runner' do
use_frameworks!
use_modular_headers!
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '11.8.0'
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
finish
set up! 'cocoapods', :disable_input_output_paths => true # Uncomment ****
post_install do |installer|
installer.pods_project.targets.every do |goal|
flutter_additional_ios_build_settings(goal)
finish
finish
AppDelegate.swift code:
import UIKit
import Flutter
import FirebaseCore
@most important
@objc class AppDelegate: FlutterAppDelegate {
override func utility(
_ utility: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
FirebaseApp.configure()
GeneratedPluginRegistrant.register(with: self)
return tremendous.utility(utility, didFinishLaunchingWithOptions: launchOptions)
}
}
What I keep in mind to did:
- Deleted Podfile.lock and Pods recordsdata
- pods replace, set up
- flutter clear
- flutter pub get
- flutter improve
- flutter pub improve
- flutter construct ios
- Clear construct folder (Xcode)
- Delete derived information
and so much so much so much I spend days to repair it.