Hi.
I'm testing some project in Swift 4.2 with Xcode 10.0 beta.
The Minimum iOS target is iOS 9.0 in my project.
But, I couldn't find the appropriate function for the function that can use in the iOS 9.0 target: func setCategory(_ category: String, with options: AVAudioSessionCategoryOptions = []) throws.
If minimum target is higher than iOS 10.0, there is alternatives:
@available(iOS 10.0, *)
open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, options: AVAudioSession.CategoryOptions = []) throws
@available(iOS 11.0, *)
open func setCategory(_ category: AVAudioSession.Category, mode: AVAudioSession.Mode, policy: AVAudioSession.RouteSharingPolicy, options: AVAudioSession.CategoryOptions = []) throws
I don't know it is Swift fault or Xcode fault.
So, I wonder the problem will be fixed or... other solution?
Thank you.