I am trying to build our Xamarin.Forms application on Azure DevOps, but it fails for iOS with the following error:
Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.1.sdk/System/Library/Frameworks/Photos.framework/Headers/PHImageManager.h(18,2): error GB12A9FDE: "Photos requires C++11 or later" [/Users/runner/runners/2.159.2/work/1/s/My_MobileApp/My_MobileApp.iOS/My_MobileApp.iOS.csproj]
The app was originally created on VS 2017, then migrated to VS 2019. It worked, but stopped building yesterday for some reason.
What can I do to fix it?