From 9514c390ed9e06c27cb58bfa6a995689791f2ca7 Mon Sep 17 00:00:00 2001 From: Botao Hu Date: Sat, 10 Sep 2022 20:39:23 -0400 Subject: [PATCH] fix CopyAndEmbed compliation issue when compiling to iOS --- .../Assets/Apple.Core/Editor/AppleFrameworkUtility.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug-ins/Apple.Core/Apple.Core_Unity/Assets/Apple.Core/Editor/AppleFrameworkUtility.cs b/plug-ins/Apple.Core/Apple.Core_Unity/Assets/Apple.Core/Editor/AppleFrameworkUtility.cs index bf92f3c5..8648d1bd 100644 --- a/plug-ins/Apple.Core/Apple.Core_Unity/Assets/Apple.Core/Editor/AppleFrameworkUtility.cs +++ b/plug-ins/Apple.Core/Apple.Core_Unity/Assets/Apple.Core/Editor/AppleFrameworkUtility.cs @@ -134,7 +134,7 @@ public static void CopyAndEmbed(string source, BuildTarget buildTarget, string p { Debug.Log($"Getting portion of source path {source} that comes after {searchString}"); var expectedInstallPath = source.Substring(source.LastIndexOf(searchString) + searchString.Length); - fileGuid = pbxProject.FindFileGuidByProjectPath(Path.Combine("Frameworks", expectedInstallPath)); + fileGuid = pbxProject.FindFileGuidByProjectPath(Path.Combine(frameworkName.EndsWith(".a") ? "Libraries" : "Frameworks", expectedInstallPath)); if (string.IsNullOrEmpty(fileGuid)) { Debug.LogError($"CopyAndEmbed expected to find an existing GUID for {frameworkName} at {expectedInstallPath} but could not be found.");