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