For me what seemed to work was updating Unity from v2022.3.11f1 to v2022.3.14f1
Then reinstalling Xcode to v15.0.1
Then in Xcode under PROJECT select Unity-iPhone, select the Build Settings and search for "Other Linker Flags" and double click it, then add "-ld64" to it. (-LD64, not -ID64)
The project archived successfully, but it gave me an error when uploading it to AppStore Connect.
I fixed this issue by selecting "UnityFramework", then in Build Settings set "Always Embed Swift Standard Libraries" to No