Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JannikHv opened this issue Jul 6, 2021 · 3 comments
Open

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

JannikHv opened this issue Jul 6, 2021 · 3 comments

Comments

@JannikHv
Copy link

JannikHv commented Jul 6, 2021

[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
[11:55:36]: ▸ (3 failures)

@JannikHv
Copy link
Author

JannikHv commented Jul 6, 2021

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

@JannikHv
Copy link
Author

JannikHv commented Jul 6, 2021

#22 Merge this to fix the issue.

@EYALIN
Copy link

EYALIN commented Apr 12, 2023

@JannikHv this has been fixed at my forked repo ( can see #25)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants