private static void AddFabricFrameworkSearchPath(string projPath) { PBXProject project = new PBXProject(); project.ReadFromString(File.ReadAllText(projPath)); string target = project.TargetGuidByName("Unity-iPhone"); Utils.Log ("Adding Framework Search Paths to Xcode project"); project.AddBuildProperty(target, "FRAMEWORK_SEARCH_PATHS", "$(SRCROOT)/Frameworks/" + fabricPluginsPath); File.WriteAllText(projPath, project.WriteToString()); }
private static void PrepareProject (string buildPath) { Settings settings = Settings.Instance; if (string.IsNullOrEmpty(settings.Organization.ApiKey) || string.IsNullOrEmpty(settings.Organization.BuildSecret)) { Utils.Error ("Unable to find API Key or Build Secret. Fabric was not added to the player."); return; } string projPath = Path.Combine (buildPath, "Unity-iPhone.xcodeproj/project.pbxproj"); PBXProject project = new PBXProject(); project.ReadFromString(File.ReadAllText(projPath)); string target = project.TargetGuidByName("Unity-iPhone"); Utils.Log ("Adding Framework Search Paths to Xcode project"); project.AddBuildProperty(target, "FRAMEWORK_SEARCH_PATHS", "$(inherited) $(PROJECT_DIR)/Frameworks/" + fabricPluginsPath); File.WriteAllText(projPath, project.WriteToString()); AddFabricRunScriptBuildPhase(projPath); }
protected static void AddBuildProperty(PBXProject project, string target, string property, string value) { project.AddBuildProperty (target, property, value); }