From 210c781fad61fbef755cfdb00952366cbf75f137 Mon Sep 17 00:00:00 2001 From: walon Date: Sun, 2 Jul 2023 21:50:52 +0800 Subject: [PATCH] =?UTF-8?q?[change]=20=E7=A6=81=E7=94=A8hybridclr=E5=90=8E?= =?UTF-8?q?=E6=89=93=E5=8C=85ios=E6=97=B6=E4=B8=8D=E5=86=8D=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=AF=BC=E5=87=BA=E7=9A=84xcode=E5=B7=A5=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AddLil2cppSourceCodeToXcodeproj2021OrOlder.cs | 3 +-- .../AddLil2cppSourceCodeToXcodeproj2022OrNewer.cs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Editor/BuildProcessors/AddLil2cppSourceCodeToXcodeproj2021OrOlder.cs b/Editor/BuildProcessors/AddLil2cppSourceCodeToXcodeproj2021OrOlder.cs index 9c4c3db..3afb507 100644 --- a/Editor/BuildProcessors/AddLil2cppSourceCodeToXcodeproj2021OrOlder.cs +++ b/Editor/BuildProcessors/AddLil2cppSourceCodeToXcodeproj2021OrOlder.cs @@ -29,9 +29,8 @@ namespace HybridCLR.Editor [PostProcessBuild] public static void OnPostProcessBuild(BuildTarget target, string pathToBuiltProject) { - if (target != BuildTarget.iOS) + if (target != BuildTarget.iOS || !HybridCLRSettings.Instance.enable) return; - /* * 1. 生成lump,并且添加到工程 3. 将libil2cpp目录复制到 Library/. 删除旧的. search paths里修改 libil2cpp/include为libil2cpp diff --git a/Editor/BuildProcessors/AddLil2cppSourceCodeToXcodeproj2022OrNewer.cs b/Editor/BuildProcessors/AddLil2cppSourceCodeToXcodeproj2022OrNewer.cs index 6e80096..e9987cd 100644 --- a/Editor/BuildProcessors/AddLil2cppSourceCodeToXcodeproj2022OrNewer.cs +++ b/Editor/BuildProcessors/AddLil2cppSourceCodeToXcodeproj2022OrNewer.cs @@ -21,7 +21,7 @@ namespace HybridCLR.Editor [PostProcessBuild] public static void OnPostProcessBuild(BuildTarget target, string pathToBuiltProject) { - if (target != BuildTarget.iOS) + if (target != BuildTarget.iOS || !HybridCLRSettings.Instance.enable) return; string pbxprojFile = $"{pathToBuiltProject}/Unity-iPhone.xcodeproj/project.pbxproj";