SnowLittleStone
SnowLittleStone
you can follow the modifications below 1、in 'AVAudioSession.CategoryOptions' in 'flutter/.pub-cache/hosted/pub.flutter-io.cn/audio_recorder-1.0.2/ios/Classes/SwiftAudioRecorderPlugin.swift' change 'try AVAudioSession.sharedInstance().setCategory(AVAudioSessionCategoryPlayAndRecord, with: AVAudioSessionCategoryOptions.defaultToSpeaker)' to 'try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.playAndRecord, options: AVAudioSession.CategoryOptions.defaultToSpeaker)' 2、in 'AVAudioSession.CategoryOptions' in 'flutter/.pub-cache/hosted/pub.flutter-io.cn/audio_recorder-1.0.2/ios/Classes/SwiftAudioRecorderPlugin.swift' change 'switch AVAudioSession.sharedInstance().recordPermission(){' to 'switch AVAudioSession.sharedInstance().recordPermission{'