Hi. I should remove CoreLocation FrameWork for IOS policy.(https://forum.unity.com/threads/nslocationwheninuseusagedescription-required-for-unknown-reasons.528654/)
So, I tried to use RemoveFrameworkFromProject function but it is not work. My unity project version is 5.6.3p2 and Xcode version 10.1. What am I miss? here is my code.
var projPath= PBXProject.GetPBXProjectPath(in_buildPath);
var proj = new PBXProject();
proj.ReadFromFile(projPath);
var targetName = PBXProject.GetUnityTargetName();
var targetGuid = proj.TargetGuidByName(targetName);
proj.RemoveFrameworkFromProject(targetGuid , "CoreLocation");
↧