Errors are here:
libMobileGestalt MobileGestaltCache.c:38: No persisted cache on this platform.
HALCADClient::ConnectToServer: failed to find the AHS sub-server port, Error: 0x10000004
HALDefaultDevice::Initialize: couldn't add the default input device listener, Error: 268435460 (\^P)
and many HALCADClient and HALDefaultDevice Errors...
I'm developing voice recorder app with SwiftUI 2.0 in Simulator but starting with Initializing the audio session, it begins errors above written.
Code is here:
import Foundation
import SwiftUI
import Combine
import AVKit
class UserSettings: ObservableObject {
@Published var isRecording: Bool = false
@Published var session: AVAudioSession!
@Published var recorder: AVAudioRecorder!
@Published var audios: [URL] = []
init()
{
do {
session = AVAudioSession.sharedInstance()
try session.setCategory(.playAndRecord)
session.requestRecordPermission { (status) in
// Alert --
}
}
catch {
print(error.localizedDescription)
}
}
}
above code worked well in Xcode 11.
I'm developing it in Xcode 12 beta 3 with simulators..
What's the problem?
libMobileGestalt MobileGestaltCache.c:38: No persisted cache on this platform.
HALCADClient::ConnectToServer: failed to find the AHS sub-server port, Error: 0x10000004
HALDefaultDevice::Initialize: couldn't add the default input device listener, Error: 268435460 (\^P)
and many HALCADClient and HALDefaultDevice Errors...
I'm developing voice recorder app with SwiftUI 2.0 in Simulator but starting with Initializing the audio session, it begins errors above written.
Code is here:
import Foundation
import SwiftUI
import Combine
import AVKit
class UserSettings: ObservableObject {
@Published var isRecording: Bool = false
@Published var session: AVAudioSession!
@Published var recorder: AVAudioRecorder!
@Published var audios: [URL] = []
init()
{
do {
session = AVAudioSession.sharedInstance()
try session.setCategory(.playAndRecord)
session.requestRecordPermission { (status) in
// Alert --
}
}
catch {
print(error.localizedDescription)
}
}
}
above code worked well in Xcode 11.
I'm developing it in Xcode 12 beta 3 with simulators..
What's the problem?