public static void Test0() { string path = Application.dataPath + "/../../Archive/"; path = path.Replace(@"/", @"\"); EditorHelper.OpenDirectory(path); }
private static void m_BuildForIOS() { SwitchIOSPlatform(); CommonSetting(); BuildAssetBundle(); if (config.isGenerateXcode) { //路径不能存在中文 否则xcode报错 string filePath = ArchivePath(); if (Directory.Exists(filePath)) { Directory.Delete(filePath, true); } BuildReport report = BuildPipeline.BuildPlayer(GetBuildScenes(), filePath, BuildTarget.iOS, BuildOptions.None); if (report.summary.result == BuildResult.Succeeded) { EditorHelper.OpenDirectory(ArchivePath()); Debug.Log(PlayerSettings.productName + " xcode工程已生成"); } else { Debug.Log("Build Failed"); } } }