From 1f929a7025c4eaeedad474f825879ac0bb7366d3 Mon Sep 17 00:00:00 2001 From: yuqucheng <> Date: Tue, 7 Jul 2026 10:28:39 +0800 Subject: [PATCH] =?UTF-8?q?refactor(editor):=20=E7=AE=80=E5=8C=96iOS?= =?UTF-8?q?=E9=87=8D=E5=A4=8Dshell=E8=84=9A=E6=9C=AC=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除冗余的added状态判断,直接执行框架添加和文件写入操作 --- Assets/Editor/iOSFixDuplicateShellScript.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Assets/Editor/iOSFixDuplicateShellScript.cs b/Assets/Editor/iOSFixDuplicateShellScript.cs index 01a4fcb..16ab9fc 100644 --- a/Assets/Editor/iOSFixDuplicateShellScript.cs +++ b/Assets/Editor/iOSFixDuplicateShellScript.cs @@ -81,12 +81,8 @@ public class iOSFixDuplicateShellScript proj.ReadFromString(File.ReadAllText(projPath)); string unityFrameworkGuid = proj.GetUnityFrameworkTargetGuid(); - bool added = proj.AddFrameworkToProject(unityFrameworkGuid, "NetworkExtension.framework", false); - - if (added) - { - File.WriteAllText(projPath, proj.WriteToString()); - Debug.Log("[PostProcess] Added NetworkExtension.framework"); - } + proj.AddFrameworkToProject(unityFrameworkGuid, "NetworkExtension.framework", false); + File.WriteAllText(projPath, proj.WriteToString()); + Debug.Log("[PostProcess] Added NetworkExtension.framework"); } }