Terminating app due to uncaught exception \'NSGenericException\'
Terminating app due to uncaught exception \'NSGenericException\', reason: \'Unable to
I found adding this one line of code fixed this issue for a cocoa ScrollView.
[scrollView setTranslatesAutoresizingMaskIntoConstraints:NO];
I think certain views add constraints at run time therefore conflicting when you add your own via objective c, so you need to disable this behaviour...