XCode crashes when I try to drag and drop an IB Outlet XCode crashes when I try to drag and drop an IB Outlet xcode xcode

XCode crashes when I try to drag and drop an IB Outlet


Ok, I tried different ways towards desired purpose. I discovered an esoteric workaround:

1-Type this in the .swift file:

@IBOutlet var tableView: UITableView!

2-Do the drag and drop FROM the line of code above TO the UIView in the story board, NOT the other way around, otherwise: XCode will crash.

3-Voila! Bug evaded.


Continuous crashes for me also on Xcode 9.4.1 and 10_GM - after linking IBOutlet with XIB.
Solution: clean up Derived data /Users/****/Library/Developer/Xcode/DerivedData.
Based on: https://forums.developer.apple.com/thread/76730