The screen implemented with UIScrollView cannot be scrolled after upgrading to Xcode 15.0

■Confirmation (2 points)

① Question about setting Constraints for UIScrollView. Is it correct to align the display position of the top edge of ContentsView, which contains the actual displayed content, with "ContentLayoutGuide" instead of "FrameLayoutGuide"?

② Is there a difference in screen display control between Xcode 14.1 and earlier and Xcode 15.0 when multiple Constraints are set for the same screen component?

■Background of the question

On the screen that implements UIScrollView, the following two constraints regarding the display position of the top edge of ContentsView were set.

  • Match the top of "FrameLayoutGuide".
  • Match the top of "ContentLayoutGuide".

Also, the priorities of the above two Constraints were the same.

In Xcode 14.1, I was able to scroll the screen without any problems. When I upgraded to Xcode 15.0, the following error message appeared and I was unable to scroll.

Unable to simultaneously satisfy constraints.