"ARM64 branch out of range" error in XCode

I am getting the following error when compiling a Unity 6 project with XCode 16 : __DATA/__common addr=0x09136C78, size=0x00213D88, fileOffset=0x00000000, type=26
ld: b(l) ARM64 branch out of range (-134348960 max is +/-128MB): from _XRStats_TryGetStat_Internal_mDE5287222A37D521F603FAF12C7AB875E43E5DE5 (0x08029CC4) to ___clang_call_terminate (0x00009F2C) in ‘_XRStats_TryGetStat_Internal_mDE5287222A37D521F603FAF12C7AB875E43E5DE5’ from /Users/user/Downloads/Apollo360UE6/Build/Products/Debug-xrsimulator/libGameAssembly.a(xtf37ukrc86m.o) for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

One way of solving this is to switch il2cpp code generation from faster runtime to smaller code in Player Settings.