Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Named colors do not work prior to iOS 11.0." even though deployment target is >= iOS 11.0

Tags:

xcode

ios

swift

I keep getting Xcode compiler errors "Named colors do not work prior to iOS 11.0." even though the deployment target in Xcode to be iOS 11.0

I've tried changing the deployment target to be 12.2 and cleaning the build folder but the error still persists.

My project settings for deployment are:

Targeted Device Family: iPhone

Debug: iPhone

Release: iPhone

iOS Deployment Target: iOS 11.0

Debug: iOS 11.0

Release: iOS 11.0
like image 934
Ian Avatar asked Nov 28 '19 18:11

Ian


1 Answers

Open your storyboard, Open 'File inspector' on right panel and change the property 'Builds for' to correct version, maybe 'iOS 11 and Later'

like image 120
Ronaldo Albertini Avatar answered Oct 02 '22 21:10

Ronaldo Albertini