Unity Build error for iOS with Meta XR package installed

Unity 2022.3.52, Meta 71

My prokect is configured so it runs on iOS , desktop or Meta Quest.

However, since an upgrade to Unity 20022.3.52, I’m getting build errors if I try to build for iOS. It has to do with the Meta package, causing errors:

NullReferenceException: Object reference not set to an instance of an object
OVRGradleGeneration.OnPreprocessBuild (UnityEditor.Build.Reporting.BuildReport report) (at ./Library/PackageCache/com.meta.xr.sdk.core@71.0.0/Editor/OVRGradleGeneration.cs:135)

Library\PackageCache\com.meta.xr.mrutilitykit@71.0.0\Core\Scripts\MRUKNative.cs(59,8): error CS1029: #error: ‘Unsupported platform’

Error building Player because scripts had compiler errors

This did not happen previously. Any idea how to fix this?

And yes, I have Open-XR/Meta XR disabled everywhere in the XR Management project setting.