SetBuildProperty ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES to NO doens't work

I am trying to automate my build creation process and everything works well besides just this one thing

pbxProject.SetBuildProperty(target, "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES", "NO");

For some reason this is being ignored (or maybe overwritten by something else)

This is the full code

            //disabling bitcode
            string projectPath = pathToBuiltProject + "/Unity-iPhone.xcodeproj/project.pbxproj";
            PBXProject pbxProject = new PBXProject();
            pbxProject.ReadFromFile(projectPath);
            //Unity Framework
            string target = pbxProject.GetUnityFrameworkTargetGuid();
            pbxProject.SetBuildProperty(target, "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES", "NO");
            pbxProject.SetBuildProperty(target, "ENABLE_BITCODE", "NO");
           
            pbxProject.WriteToFile(projectPath);

You can see that I also disable bitcode, and it works, but “Always embed swift standard libraries” stays as YES every time. Am I doing something wrong?

Unity 2021.3.6f1
Xcode 13.4.1

yeah, we have code that forcibly set it to YES if .swift file is encountered. essentially we have this:

if (file.destinationPath.HasExtension(".swift"))
{
    SetBuildProperty(m_FrameworkAndTestTargets, "SWIFT_VERSION", "5.0");
    SetBuildProperty(m_FrameworkAndTestTargets, "CLANG_ENABLE_MODULES", "YES");
    SetBuildProperty(m_FrameworkAndTestTargets, "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES", "YES");
}

We should probably consider the need for swift std libs inclusion depending on min ios version