peerwaya / flutter_call_kit

Flutter iOS CallKit framework - Currently iOS >= 10.0 only
BSD 2-Clause "Simplified" License
55 stars 47 forks source link

IOS 15. and xcode 13 flutter call kit have issue #28

Open CopperJam-git opened 2 years ago

CopperJam-git commented 2 years ago

Command CompileSwiftSources failed with a nonzero exit code Undefined symbols for architecture x86_64: "_AVAudioSessionInterruptionTypeKey", referenced from: -[FlutterCallKitPlugin provider:didActivateAudioSession:] in FlutterCallKitPlugin.o "_AVAudioSessionInterruptionNotification", referenced from: -[FlutterCallKitPlugin provider:didActivateAudioSession:] in FlutterCallKitPlugin.o "_AVAudioSessionCategoryPlayAndRecord", referenced from: -[FlutterCallKitPlugin configureAudioSession] in FlutterCallKitPlugin.o "_AVAudioSessionInterruptionOptionKey", referenced from: -[FlutterCallKitPlugin provider:didActivateAudioSession:] in FlutterCallKitPlugin.o "_OBJCCLASS$_AVAudioSession", referenced from: objc-class-ref in FlutterCallKitPlugin.o "_AVAudioSessionModeVoiceChat", referenced from: -[FlutterCallKitPlugin configureAudioSession] in FlutterCallKitPlugin.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Command CompileSwiftSources failed with a nonzero exit code

elango commented 2 years ago

Hello,

I'm also facing the same issue. Any update on the fixes.

Thanks

kmoreau commented 2 years ago

Hello,

You can fork the project, and add

import <AVFoundation/AVAudioSession.h>

in file "ios/Classes/FlutterCallKitPlugin.m"

I think it's a regression. If i put this line, my project works :)

Look this last bug fix : https://github.com/peerwaya/flutter_call_kit/pull/27/commits/8451138dd5ec2f40d8c00695c75c7e5e29269f92