AddFolderReference() 공개 메소드

public AddFolderReference ( string path, string projectPath ) : string
path string
projectPath string
리턴 string
예제 #1
0
    private static void DoAddLocalizationFolder(string projectPath)
    {
        string pbxProjectPath = UnityEditor.iOS.Xcode.PBXProject.GetPBXProjectPath(projectPath);

        UnityEditor.iOS.Xcode.PBXProject originalProj = new UnityEditor.iOS.Xcode.PBXProject();

        originalProj.ReadFromFile(pbxProjectPath);
        string localizationFolderPath = $"{projectPath}/Localization";

        if (false == Directory.Exists(localizationFolderPath))
        {
            Directory.CreateDirectory(localizationFolderPath);
        }
        originalProj.AddFolderReference(localizationFolderPath, "Localization");
        originalProj.WriteToFile(pbxProjectPath);
    }