Terminating app due to uncaught exception 'NSUnknownKeyException'

Originator:cokacolata
Number:rdar://40201456 Date Originated:13/05/2018
Status:Open Resolved:
Product:Xcode Product Version:9.3.1
Classification:Developer Tools Reproducible:Yes
 
To completely separate a View from a Controller, I create a test project with three files LoginView.xib, LoginView.swift and Login1ViewController.swift. 
The problem is in the name of the Controller. It's currently named 
 Login1ViewController.swift (with 1 on the middle) when I'm trying to rename it to LoginViewController.swift the app crashed. 

the code on GitHub: https://goo.gl/w8STGZ

1. Please download a test project from the link below, test it, it successfully runs.
2. Rename Login1ViewController.swift to LoginViewController.swift 
2.1 Please rename a class Login1ViewController to LoginViewController. Right-click on it Refactor->Rename.
3. Run. The app will crash with error: "Terminating app due to uncaught exception 'NSUnknownKeyException'".

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!