Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to automatically update constraints

I am getting the Failure to automatically update constraints error when trying to use the auto layout to Add, Reset, or Update any restraints on any viewController after updating to xCode 9. Any ideas? I have already cleaned and restarted my Mac.

Still have not found a solution for this. I narrowed it down to any viewController with a collectionView inside it. Any ideas?

like image 870
Torewin Avatar asked Sep 21 '17 03:09

Torewin


3 Answers

I got also this error, when I tried to update/add etc. my constraints error image

I use Xcode Version 9.0 (9A235) and I spent the whole day figuring it out. I solved my problem by deleting a segmentctrl in the navigation bar. all my controller with a segctrl in the nav bar seems to bug.

I made a video with a new project https://www.youtube.com/watch?v=TOTzCfDoFNA&feature=youtu.be

like image 73
Rumpel Avatar answered Nov 01 '22 19:11

Rumpel


Remove the navigationbar in your view controller in storyboard .For me it is working well.

like image 31
guru prasad Gudluri Avatar answered Nov 01 '22 19:11

guru prasad Gudluri


For everyone following this. xCode 9.0.1 is out. Tested and it fixes this error. I haven’t be able to reproduce.

like image 30
Torewin Avatar answered Nov 01 '22 20:11

Torewin