Failed to automatically update constraints

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-02 01:59:09

问题


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?


回答1:


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




回答2:


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




回答3:


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




回答4:


@Rumbel you are correct , its a bug from apple in Xcode 9.0

watch this youtube segment control bug in IOS 11 and Xcode 9.0



来源:https://stackoverflow.com/questions/46335040/failed-to-automatically-update-constraints

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!