cnAlan / tiktok_sdk_v2

A Flutter plugin that integrates TikTok SDK 2.0
MIT License
2 stars 3 forks source link

Swift Compiler Error (Xcode): Type 'UIApplication' does not conform to protocol 'TikTokURLOpener' #3

Open ccarmesin opened 1 month ago

ccarmesin commented 1 month ago

This error appears inside the generated 'TikTokURLOpener'. By replacing the function open(...) with

func open(_ url: URL, options: [UIApplication.OpenExternalURLOptionsKey : Any], completionHandler completion: (@MainActor @Sendable (Bool) -> Void)?)

in the generated class the problem gets fixed for me. That's a very dirty solution I know! But since I am not a Swift developer I have no clue how to fix it properly, so that the class will be generated correctly. Would be lovely if someone can fix this who is more experienced in Swift than me🪲

Sk8er22 commented 1 month ago

+1

LondonX commented 3 weeks ago

+1