ios - Swift dynamic cast failed when adding a new View Controller -
I have a simple iOS testing app in Swift. I have added an additional view controller at the beginning of my storyboard and a square LoginViewController has been created: UIViewController I have set my visual controller to be the custom class LoginViewController and changed the properties to make it the initial view controller. I have also added a simple button which I have for the rest of the app. Now when I start my app in the simulator, it immediately crashes with the following: libswiftCore.dylib`swift_dynamicCastClassUnconditional: 0x10cc3f9e0: pushq% RBP 0x10cc3f9e1 : Movq% rp,% rbp 0x10cc3f9e4: testq% RDI,% RDI 0x10cc3f9e7: je 0x10cc3fa1e; Svift_dynamicstclassunkdishnl + 62 0x10cc3f9e9: Movabshk $ -0x7fffffffffffffff% Raks 0x10cc3f9f3: Testk% Raks% Rdi 0x10cc3f9f6: newborn 0x10cc3fa1e; Swift_dynamicCastClassUnconditional + 62 0x105x9f8: leaq 0xb5109 (% rip),% rax 0x10cc3f9ff: movq (% rax),% rax 0x10cc3fa02: andq (% rdi),% rax 0x10cc3fa05: nopw% cs: (% rax,% rax) 0x10cc3f...