App crashes with "Could not instantiate class named _UIScrollViewLayoutGuide" on iOS 10 and older

I had the same issue (using Xcode11 and running iOS 10.3.1). Unchecking Content Layout Guides from the Scroll View worked for me.

image


Thanks to @Luke's answer I've found the exact reason of the problem: it is caused by constraints between any item and scroll view's Content Layout Guide.

So to find where the problem one needs to:

  1. check the log to find out which view controller participates in the problem. According to the log shown by @Jaseel.Dev it is "Alexis_Hospital"
  2. In that view controller in Interface Builder check all scroll views and their Content Layout Guides or Frame Layout Guides
  3. There 2 ways to fix:

a) click on the scroll view, there Uncheck [ ] Content Layout Guides and check them again (Interface Builder will reassign the "layout guide" edges to "superview")

enter image description here

b) click on the Content Autolayout Guide and check if there any constraints pointing to them. Get rid of those constraints.

enter image description here

The main idea is to remove these constrains, which would crash on iOS 10 and earlier.