What is the correct way to stop this error?
For now I'm merely unchecking "Use Safe Area Layout Guides" which allows me to compile the app without error.
What is the correct way to stop this error?
For now I'm merely unchecking "Use Safe Area Layout Guides" which allows me to compile the app without error.
I believe it is imperative to support the latest iOS devices such as iPhone X, iPhone XS, and iPhone XR. The accepted answer to this question fails to address this. In Interface Builder, the Safe Area is a layout guide representing the portion of your view that is unobscured by bars and other content. In iOS 11+, Apple is deprecating the top and bottom layout guides and replacing them with this Safe Area Layout guide.
To resolve this Illegal Configuration Build error you should:
Update your project file to support a Deployment Target of iOS 9, not iOS 8.
Click on the 'Clean Build Folder' menu item off the Project menu.
Close xCode 10, and then restart it.
Rebuild your app.
Note that the 'Illegal Configuration' build error no longer appears, and you are now able to run your app in the simulator of your choice.
If you encounter this error with your CocoaPods, you must force your pods deployment target in podfile with minimum iOS 9.0, XCode 9 should manage this case but this is not working at the time of writing
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
end
end
end
Apple told us in WWDC 2017 Session 412 that
Safe Area Layout Guide
is Backwards deployable. But it seems to be not supporting iOS 8.0. I've got the same error on Xcode 9 GM too.In my case, I stopped using the
Safe Area Layout Guide
, but useTop Layout Guide
andBottom Layout Guide
, even though they are deprecated on iOS 11.