I found an easier workaround as I this bug can be found on XCODE 9.
Step one go to your viewcontroller and manually write the property you want to connect as the below example, make sure you use the below format.
@IBOutlet weak var questionsStackView: UIStackView!
Step two go to your storyboard and connect your view or whatever your trying to connect to the property you created in step 1.
The above will save you time of removing and cleaning derived data.