Post

Replies

Boosts

Views

Activity

Reply to UIKitCore -[UIResponder doesNotRecognizeSelector:] crashes since IOS 15.7
hello. are you still looking here? A few days have passed since I made changes to the app, but after making changes and updating, the number of crash reports for iOS 15.7 has drastically decreased. I don't know if it will reduce your number of crashes as your case is a bit different, but I will share what I have done. The code I added is below. // MARK: UISceneSession Lifecycle   func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {     // Called when a new scene session is being created.     // Use this method to select a configuration to create the new scene with.     return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)   }   func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {     // Called when the user discards a scene session.     // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.     // Use this method to release any resources that were specific to the discarded scenes, as they will not return.   } var window: UIWindow?   func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {     let appDelegate = UIApplication.shared.delegate as! AppDelegate     appDelegate.window = self.window         guard let _ = (scene as? UIWindowScene) else { return }   } @available(iOS, introduced: 15.7, obsoleted: 16.0) @objc extension SKStoreProductViewController {   func sceneDisconnected(_ arg: AnyObject) { }   func appWillTerminate() { } }
Oct ’22
Reply to UIKitCore -[UIResponder doesNotRecognizeSelector:] crashes since IOS 15.7
No, I can't reproduce the crash when testing on a real iOS 15.7 device. I just compared the number of crashes on the report and compared the differences in the code of both apps. We'll see how it goes for a few days and if the number of crashes goes down, I'll share it here. I think that even if I don't know if there is any result, I will confuse a lot of people who are in trouble if I list the changes here. Oddly none of the users reported crashing. A silent crash is also possible.
Sep ’22
Reply to UIKitCore -[UIResponder doesNotRecognizeSelector:] crashes since IOS 15.7
Hi, I mean the code you posted. UIWindowScene *windowScene = self.view.window.windowScene; [[NSNotificationCenter defaultCenter]postNotificationName:UISceneDidDisconnectNotification object:windowScene userInfo:nil]; I wanted to know if there was a reduction in crashes with that change. I'm having the same crash as you on iOS 15.7 only. I just submitted the crash-fixed version for review and am waiting for the review to be completed. In my multiple apps, there are apps that crash on iOS15.7 and apps that do not crash. I found the difference and took countermeasures.
Sep ’22