Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 11.4 compile time error "Content and frame layout guides before iOS 11.0"

A compile error appeared after I updated Xcode to 11.4 (11E146) - Content and frame layout guides before iOS 11.0 in storyboard, which prevents the projec from build. Does anyone know what has been changed whith this latest update and where the error comes from? Obviously before the update everything was fine.

like image 257
nrx Avatar asked Apr 14 '20 15:04

nrx


2 Answers

Before the update it was mistakenly not producing a build error. The fact that there is now an error is actually a bug fix.

If you target an OS earlier than iOS 11, you cannot use the Content and Frame layout guides in your storyboard because they were not introduced until iOS 11. Using them like this will cause crashes in iOS 10 and below. To get rid of this error you can either stop using the layout guides or target a higher iOS version.

If you think you have eliminated all references to these layout guides in your storyboards but are still seeing this error, be sure to check your UITextViews too!

like image 131
R Moyer Avatar answered Sep 22 '22 10:09

R Moyer


You are using storyboards make sure to update the deployment target

enter image description here

like image 44
Paras Dharasanda Avatar answered Sep 24 '22 10:09

Paras Dharasanda