akofman / cordova-plugin-dbmeter

:microphone::mega: Cordova plugin to get decibels from the microphone
Apache License 2.0
34 stars 29 forks source link

Can't build for iOS due to Swift update #23

Open JannikHv opened 3 years ago

JannikHv commented 3 years ago

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

JannikHv commented 3 years ago

Update: Simply changing "AVAudioSessionCategoryRecord" to "AVAudioSession.Category.record" solved the issue for us.

JannikHv commented 3 years ago

22 Merge this to fix the issue.

EYALIN commented 1 year ago

@JannikHv this has been fixed at my forked repo ( can see https://github.com/akofman/cordova-plugin-dbmeter/issues/25)