Shivam Kanodia
05/03/2023, 9:46 AMThread 1: EXC_BAD_ACCESS (code=1, address=0x0) when running KMM app in XCode
*import* UIKit
*import* kmm
@UIApplicationMain
*class* AppDelegate: UIResponder, UIApplicationDelegate {
*var* window: UIWindow?
*func* application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: *Any*]!) -> Bool {
window = UIWindow(frame: UIScreen.main.bounds)
*let* mainViewController = Main_iosKt.MainViewController()
window?.rootViewController = mainViewController
window?.makeKeyAndVisible()
return
true
}
}
som error in AppDelegate class
David Nedrow
05/03/2023, 1:04 PMkmm
import give you? Are you trying to use Compose? I've never seen this before: Main_iosKt.MainViewController()
Shivam Kanodia
05/03/2023, 1:12 PMDavid Nedrow
05/03/2023, 1:12 PMLandry Norris
05/03/2023, 2:07 PMval x = y; val y get() = x
, or some other initialization weirdness.Shivam Kanodia
05/04/2023, 8:13 AM