bingo b面修改

This commit is contained in:
2026-05-08 11:03:00 +08:00
parent ad5920ac6a
commit 5d32fd56f4
1780 changed files with 36187 additions and 73978 deletions
+16 -16
View File
@@ -12,22 +12,22 @@ public class PostProcessBuild : IPostprocessBuildWithReport
public void OnPostprocessBuild(UnityEditor.Build.Reporting.BuildReport report)
{
// 检查是否为 iOS 平台构建
if (report.summary.platform == BuildTarget.iOS)
{
string projectPath = report.summary.outputPath;
string customControllerPath = "Assets/Editor/UnityAppController.mm"; // 自定义文件的路径
string destinationPath = Path.Combine(projectPath, "Classes/UnityAppController.mm");
// if (report.summary.platform == BuildTarget.iOS)
// {
// string projectPath = report.summary.outputPath;
// string customControllerPath = "Assets/Editor/UnityAppController.mm"; // 自定义文件的路径
// string destinationPath = Path.Combine(projectPath, "Classes/UnityAppController.mm");
if (File.Exists(customControllerPath))
{
// 复制文件到 Xcode 项目中
File.Copy(customControllerPath, destinationPath, overwrite: true);
Debug.Log("Custom UnityAppController.mm has been copied to Xcode project.");
}
else
{
Debug.LogError("Custom UnityAppController.mm file not found at " + customControllerPath);
}
}
// if (File.Exists(customControllerPath))
// {
// // 复制文件到 Xcode 项目中
// File.Copy(customControllerPath, destinationPath, overwrite: true);
// Debug.Log("Custom UnityAppController.mm has been copied to Xcode project.");
// }
// else
// {
// Debug.LogError("Custom UnityAppController.mm file not found at " + customControllerPath);
// }
// }
}
}