C# Project ios export problems

Godot Version

4.2.1 mono

Question

I am stuck trying to export my game to X-Code. The build is failing and the output log looks something like this:

The command ""clang" ... " exited with code 1. /Users/titus/.nuget/packages/microsoft.dotnet.ilcompiler/8.0.1/build/Microsoft.NETCore.Native.targets(364,5)

If more details are needed I would be happy to add them.
I pasted the entire error message here.

It looks like you are building a C# project with NativeAOT, for which the .NET SDK needs to use a C++ linker like clang, and the clang command failed for some reason.

Are there any other messages before or after this one? The output of the clang command may have been printed to the console and would give you more details about what failed, you may need to change the verbosity level for C# builds in editor settings: