VoIPGRID / VialerSIPLib

An Objective-c wrapper for PJSIP
GNU General Public License v3.0
133 stars 69 forks source link

Cannot find 'CallKitProviderDelegate' in scope from AppDelegate #233

Closed lonasPL closed 3 years ago

lonasPL commented 3 years ago

Version

3.7.3

File / Feature

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { var providerDelegate = CallKitProviderDelegate(callManager: VialerSIPLib.sharedInstance().callManager) return true }

Expected behavior

CallKitProviderDelegate should be find

Actual behavior

CallKitProviderDelegate not found - Cannot find 'CallKitProviderDelegate' in scope

Stacktrace / Error message

{paste here}

Other info

Im newbie in ios development. I have successfully run example project but I have an issue when trying to add library into my project. For a testing I have created new project from the scratch and install/update pod pod 'VialerSIPLib' but still I'm unable to use library in AppDelegate. Cannot find 'CallKitProviderDelegate' in scope.

I'm using xcode 12 and swift 5. Target os is 14.0

Any help appreciated. Thanks in advance

lonasPL commented 3 years ago

OK I have found a root cause - I've been missing bridge between objective C and swift. More information is present here https://developer.apple.com/documentation/swift/imported_c_and_objective-c_apis/importing_objective-c_into_swift