This bug has been driving me nuts since I started using Xcode (4.6.3). Whenever I try to link a Storyboard item to my code, I get the error:
Could not
I just had this problem on April 2017 with Xcode 8
Simply creating an outlet through code and compiling fixed it. eg:
@IBOutlet weak var containerViewHeight: NSLayoutConstraint!
You got to love Xcode…
Edit: Still happening on Xcode 9