Xcode's output:
↳
Writing result bundle at path:
/var/folders/n2/wny1mx0n0zzflvm90bgt_rsm0000gn/T/flutter_tools.9EDmLo/flutter_ios_build_temp_dirNfnpBV/temporary_xcresult_bundle
/Users/gangjeongu/.pub-cache/hosted/pub.dev/url_launcher_ios-6.2.4/ios/Classes/Launcher.swift:20:1: error: type 'UIApplication' does not conform to protocol 'Launcher'
extension UIApplication: Launcher {}
^
UIKit.UIApplication:24:15: note: candidate has non-matching type '(URL, [UIApplication.OpenExternalURLOptionsKey : Any], (@MainActor @Sendable (Bool) -> Void)?) -> Void'
open func open(_ url: URL, options: [UIApplication.OpenExternalURLOptionsKey : Any] = [:], completionHandler completion: (@MainActor @Sendable (Bool) -> Void)? = nil)
^
/Users/gangjeongu/.pub-cache/hosted/pub.dev/url_launcher_ios-6.2.4/ios/Classes/Launcher.swift:13:8: note: protocol requires function 'open(_:options:completionHandler:)' with type '(URL, [UIApplication.OpenExternalURLOptionsKey : Any], ((Bool) -> Void)?) -> ()'; add a stub for conformance
func open(
^
iOS Build 에러 발생
iOS는 업데이트만 하면 이렇게 에러가 발생하는지 가끔 너무한다는 생각이든다.
그냥 바로 해결 방법을 알아보자.
flutter package 추가
url_launcher_ios: ^6.3.1
'공부방 > Flutter' 카테고리의 다른 글
행복한 코딩을 위하여!
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!