Flutter iOS construct fails with “UIApplication doesn’t conform to protocol ‘Launcher'” error in url_launcher_ios

0
18
Flutter iOS construct fails with “UIApplication doesn’t conform to protocol ‘Launcher'” error in url_launcher_ios


I am getting a construct error when making an attempt to run my Flutter app on iOS simulator. The error appears to be associated to the url_launcher_ios plugin.

Error Message:

/Customers/person/.pub-cache/hosted/pub.dev/url_launcher_ios-6.2.4/ios/Courses/Launcher.swift:20:1: error: kind 'UIApplication' doesn't conform to protocol 'Launcher'
extension UIApplication: Launcher {}
^
UIKit.UIApplication:24:15: word: candidate has non-matching kind '(URL, [UIApplication.OpenExternalURLOptionsKey : Any], (@MainActor @Sendable (Bool) -> Void)?) -> Void'
open func open(_ url: URL, choices: [UIApplication.OpenExternalURLOptionsKey : Any] = [:], completionHandler completion: (@MainActor @Sendable (Bool) -> Void)? = nil)

What I’ve tried:
Up to date Podfile to make use of iOS 12.0:

platform :ios, '12.0'

Cleaned and reinstalled dependencies:

flutter clear
flutter pub get
cd ios
pod deintegrate
pod cache clear --all
pod set up

pubspec.yaml dependencies:

dependencies:
  flutter:
    sdk: flutter
  url_launcher: ^6.2.4

My Query:*
I’ve lately up to date the Simulator to 18.1 iPhone 16 Plus and these completely different errors began to pop up a earlier error was:

means that the construct course of in your iOS app
in Xcode failed, and the principle subject appears to be
that sure Flutter dependencies (e.g., sqflite)
are unable to find Flutter.h

What’s the motive for locating this error and the way can I repair it?

that is the complete error

Writing outcome bundle at path:
    /var/folders/cd/yh1682_95jz__1z337mbc0dh0000gp/T/flutter_tools.KNaYLQ/flutter_ios_build_temp_dir1iOiMu/temporary_xcresult_bundle

/Customers/Consumer/.pub-cache/hosted/pub.dev/url_launcher_ios-6.2.4/ios/Courses/Launcher.swift:20:1: error: kind 'UIApplication' doesn't conform to protocol 'Launcher'
extension UIApplication: Launcher {}
^
UIKit.UIApplication:24:15: word: candidate has non-matching kind '(URL, [UIApplication.OpenExternalURLOptionsKey : Any], (@MainActor @Sendable (Bool) -> Void)?) -> Void'
    open func open(_ url: URL, choices: [UIApplication.OpenExternalURLOptionsKey : Any] = [:], completionHandler completion: (@MainActor @Sendable (Bool) -> Void)? = nil)
              ^
/Customers/Consumer/.pub-cache/hosted/pub.dev/url_launcher_ios-6.2.4/ios/Courses/Launcher.swift:20:1: word: add stubs for conformance
extension UIApplication: Launcher {}
^

/Customers/Consumer/StudioProjects/Undertaking/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is about to 9.0, however the vary of supported deployment goal variations is 12.0 to 18.1.99. (in goal 'PromisesObjC' from venture 'Pods')
/Customers/Consumer/StudioProjects/Undertaking/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is about to 9.0, however the vary of supported deployment goal variations is 12.0 to 18.1.99. (in goal 'OrderedSet' from venture 'Pods')
/Customers/Consumer/StudioProjects/Undertaking/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is about to 11.0, however the vary of supported deployment goal variations is 12.0 to 18.1.99. (in goal 'path_provider_foundation-path_provider_foundation_privacy' from venture 'Pods')
/Customers/Consumer/StudioProjects/Undertaking/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is about to 9.0, however the vary of supported deployment goal variations is 12.0 to 18.1.99. (in goal 'nanopb' from venture 'Pods')
/Customers/Consumer/StudioProjects/Undertaking/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is about to 11.0, however the vary of supported deployment goal variations is 12.0 to 18.1.99. (in goal 'image_picker_ios-image_picker_ios_privacy' from venture 'Pods')
/Customers/Consumer/StudioProjects/Undertaking/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is about to 11.0, however the vary of supported deployment goal variations is 12.0 to 18.1.99. (in goal 'shared_preferences_foundation-shared_preferences_foundation_privacy' from venture 'Pods')
/Customers/Consumer/StudioProjects/Undertaking/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is about to 11.0, however the vary of supported deployment goal variations is 12.0 to 18.1.99. (in goal 'url_launcher_ios-url_launcher_ios_privacy' from venture 'Pods')
/Customers/Consumer/StudioProjects/Undertaking/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is about to 10.0, however the vary of supported deployment goal variations is 12.0 to 18.1.99. (in goal 'google_mobile_ads-google_mobile_ads' from venture 'Pods')
/Customers/Consumer/StudioProjects/Undertaking/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is about to 11.0, however the vary of supported deployment goal variations is 12.0 to 18.1.99. (in goal 'url_launcher_ios' from venture 'Pods')
/Customers/Consumer/StudioProjects/Undertaking/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is about to 11.0, however the vary of supported deployment goal variations is 12.0 to 18.1.99. (in goal 'shared_preferences_foundation' from venture 'Pods')
/Customers/Consumer/StudioProjects/Undertaking/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is about to 11.0, however the vary of supported deployment goal variations is 12.0 to 18.1.99. (in goal 'path_provider_foundation' from venture 'Pods')
/Customers/Consumer/StudioProjects/Undertaking/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is about to 9.0, however the vary of supported deployment goal variations is 12.0 to 18.1.99. (in goal 'GoogleUtilities' from venture 'Pods')
/Customers/Consumer/StudioProjects/Undertaking/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is about to 11.0, however the vary of supported deployment goal variations is 12.0 to 18.1.99. (in goal 'flutter_inappwebview' from venture 'Pods')
/Customers/Consumer/StudioProjects/Undertaking/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is about to 10.0, however the vary of supported deployment goal variations is 12.0 to 18.1.99. (in goal 'GoogleAppMeasurement' from venture 'Pods')
/Customers/Consumer/StudioProjects/Undertaking/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is about to 11.0, however the vary of supported deployment goal variations is 12.0 to 18.1.99. (in goal 'image_picker_ios' from venture 'Pods')

word: Run script construct section 'Run Script' might be run throughout each construct as a result of the choice to run the script section "Based mostly on dependency evaluation" is unchecked. (in goal 'Runner' from venture 'Runner')
word: Run script construct section 'Skinny Binary' might be run throughout each construct as a result of the choice to run the script section "Based mostly on dependency evaluation" is unchecked. (in goal 'Runner' from venture 'Runner')

/Customers/Consumer/StudioProjects/Undertaking/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is about to 11.0, however the vary of supported deployment goal variations is 12.0 to 18.1.99. (in goal 'Flutter' from venture 'Pods')
/Customers/Consumer/StudioProjects/Undertaking/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is about to 10.0, however the vary of supported deployment goal variations is 12.0 to 18.1.99. (in goal 'Google-Cellular-Advertisements-SDK' from venture 'Pods')
/Customers/Consumer/StudioProjects/Undertaking/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is about to 11.0, however the vary of supported deployment goal variations is 12.0 to 18.1.99. (in goal 'GoogleUserMessagingPlatform' from venture 'Pods')

Couldn't construct the appliance for the simulator.
Error launching software on iPhone 16 Plus.

LEAVE A REPLY

Please enter your comment!
Please enter your name here