From bec8c84c56fd90dd90eedfd1688af35261681226 Mon Sep 17 00:00:00 2001 From: walon Date: Fri, 7 Jul 2023 21:37:18 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E4=BF=AE=E5=A4=8DWin=E4=B8=8B=E7=94=9F?= =?UTF-8?q?=E6=88=90=E7=9A=84Lump=E6=96=87=E4=BB=B6=E4=B8=ADinclude?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E4=BB=A5\=E4=B8=BA=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E5=88=86=E9=9A=94=E7=AC=A6=E5=AF=BC=E8=87=B4=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E5=88=B0Mac=E5=90=8E=E6=89=BE=E4=B8=8D=E5=88=B0=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AddLil2cppSourceCodeToXcodeproj2021OrOlder.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Editor/BuildProcessors/AddLil2cppSourceCodeToXcodeproj2021OrOlder.cs b/Editor/BuildProcessors/AddLil2cppSourceCodeToXcodeproj2021OrOlder.cs index 3afb507..477368b 100644 --- a/Editor/BuildProcessors/AddLil2cppSourceCodeToXcodeproj2021OrOlder.cs +++ b/Editor/BuildProcessors/AddLil2cppSourceCodeToXcodeproj2021OrOlder.cs @@ -1,3 +1,4 @@ +using System; using HybridCLR.Editor.Installer; using System.Collections.Generic; using System.IO; @@ -63,7 +64,7 @@ namespace HybridCLR.Editor private static string GetRelativePathFromProj(string path) { - return path.Substring(path.IndexOf("Libraries")); + return path.Substring(path.IndexOf("Libraries", StringComparison.Ordinal)).Replace('\\', '/'); } private static void ModifyPBXProject(string pathToBuiltProject, string pbxprojFile, List lumpFiles, List extraFiles, List cflags)