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?
Post
Replies
Boosts
Views
Activity
I tested in some conditions...
I coded some Lists that is getting image datas from firebase URL and they have no problems.
but After I made a LazyVGrid in ScrollView that is getting images from the same firebase server, whenever I scroll some amount then app crashes...
I tested some local images to LazyVGrid then it's ok. but whenever it downloads images in realtime and scrolling cause crash(app stops. no error messages...)
I think this is SwiftUI Bug...