Open JannikHv opened 3 years ago
Update: Simply changing "AVAudioSessionCategoryRecord" to "AVAudioSession.Category.record" solved the issue for us.
@JannikHv this has been fixed at my forked repo ( can see https://github.com/akofman/cordova-plugin-dbmeter/issues/25)
11:55:36: ▸ ❌ /Users/ionic/builds/XXX/XXX/ios/capacitor-cordova-ios-plugins/sources/CordovaPluginDbmeter/DBMeter.swift:75:50: 'AVAudioSessionCategoryRecord' has been renamed to 'AVAudioSession.Category.record' 11:55:36: ▸ try audioSession.setCategory(AVAudioSessionCategoryRecord) 11:55:36: ▸ ^
~~~~~~~~ 11:55:36: ▸ ARCHIVE FAILED 11:55:36: ▸ The following build commands failed: 11:55:36: ▸ CompileSwift normal arm64 /Users/ionic/builds/XXX/XXX/ios/capacitor-cordova-ios-plugins/sources/CordovaPluginDbmeter/DBMeter.swift 11:55:36: ▸ CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler 11:55:36: ▸ CompileSwift normal arm64