nrx
nrx

Reputation: 369

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.

Upvotes: 9

Views: 3062

Answers (2)

Paras Dharasanda
Paras Dharasanda

Reputation: 213

You are using storyboards make sure to update the deployment target

enter image description here

Upvotes: 4

R Moyer
R Moyer

Reputation: 1703

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!

Upvotes: 12

Related Questions