Post

Replies

Boosts

Views

Activity

Reply to UIViewcontroller.present crashing iOS 14.4
So responding the questions. I always try to have all the code and xibs updated. this is the start of the xib document xml ?xml version="1.0" encoding="UTF-8"? document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="18122" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"     device id="retina6_1" orientation="landscape" appearance="light"/     dependencies         deployment identifier="iOS"/         plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="18092"/         capability name="Safe area layout guides" minToolsVersion="9.0"/         capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/     /dependencies     objects When you say replacing with something new created with the latest Xcode, are u saying to create a new xib from scratch and build the views to mimic the previous xib? if this is the case , no I haven't tried that yet . This crash on the device not on the simulator. And according to Xcode the error is triggered here : self.present(playerVC, animated:true, completion: {         }) i understand that may be something related with the .init inside the xib. but I can't access those functions in order to debug it ( I think). If the worst case scenario is to rebuild the new using a newly created xib file , I will give it a try . But the most annoying thing regarding this issue , is that if is launch with a internet connection it works properly , without internet does not . This is because we have the downloads features for content (movies, series, etc) . I agree that this may be a problem with the xib , but I want to understand exactly what could be causing this, and my suspicion is that something change on Xcode that break this for some reason . already tried the new Xcode beta and it happens. Really annoying this kind of random ambiguous crashes
Topic: UI Frameworks SubTopic: UIKit Tags:
Mar ’21
Reply to UIViewcontroller.present crashing iOS 14.4
Hello, I don't use the storyboard for this specific screen . We are doing the everything programmatically. We have a xib for the screen with the same name of the view controller . So when we do let playerVC = PlayerViewController() self.present(playerVC, animated:true, completion: nil) Basically we have not touch on the XIB since October 2020, and back then everything worked perfectly fine. Also I did start doing some crazy test and if I run this code (below) with internet connection it works fine. The moment I turn of the internet connection and launch the app , it crashes. let nav1 = UINavigationController() nav1.navigationBar.barTintColor = UIColor.black nav1.navigationBar.titleTextAttributes = [.foregroundColor: UIColor.white] nav1.viewControllers = [PlayerViewController()] self.window!.rootViewController = nav1 self.window?.makeKeyAndVisible()
Topic: UI Frameworks SubTopic: UIKit Tags:
Mar ’21