"Could not find any information for class named ViewController"
What solved this issue for me was actually deleting the class from the project.
Steps:
- In the project file explorer (left panel) find the class and right click -> Delete
- Remove reference (do not move to trash as you will lose the class for good)
- Right click on the folder that contained the class -> Add files to ...
- Find the class you just deleted in the file system
This seems to force Xcode to link the class back into the storyboard.
Note: for me the following did not work:
- Closing Xcode
- Cleaning the project
- Deleting the class name from the storyboard and re-entering it
I think this is a bug on Apple's part
In case anyone is still frustrated by this, there's a trick to get things working.
What I do is manually enter an outlet into my class, for example: @IBOutlet weak var someView: UIView!
, and drag from the code to the view in IB or storyboard. After this, I am able to drag from IB / Storyboard to my class to make connections, assistant editors recognizes the class in "Automatic", etc...
Works every time.