I need remove libPods-Unity-iPhone.a into link binary
I use RemoveFileFromBuild, RemoveFrameworkFromProject, but it’s non remove
How can I remove it or how do I prevent it from appearing in pbxproj?
Unity5.6.2f1
An example of how it does not work:
string projPath = pathToBuiltProject + "/Unity-iPhone.xcodeproj/project.pbxproj";
PBXProject proj = new PBXProject();
proj.ReadFromString(File.ReadAllText(projPath));
string target = proj.TargetGuidByName("Unity-iPhone");
proj.SetBuildProperty(target, "ENABLE_BITCODE", "NO");
proj.SetBuildProperty(target, "CLANG_ENABLE_MODULES", "YES");
proj.RemoveFrameworkFromProject (target, "libPods-Unity-iPhone.a");
File.WriteAllText(projPath, proj.WriteToString());
SetBuildProperty is worked
![3181219--242633--3a8cb-clip-105kb[1].png](https://europe1.discourse-cdn.com/unity/optimized/3X/1/b/1b068567d54aa5eaad5e7546f000670f9c11374e_2_556x499.png)