From 186d5717e4b6c9089f0212c7f86e433a35f13677 Mon Sep 17 00:00:00 2001 From: Natalie Bunduwongse Date: Fri, 15 Dec 2023 10:47:21 +1300 Subject: [PATCH] fix: passport post process ios build data path --- src/Packages/Passport/Editor/PassportPostprocess.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Packages/Passport/Editor/PassportPostprocess.cs b/src/Packages/Passport/Editor/PassportPostprocess.cs index 5e148e76..68b58077 100644 --- a/src/Packages/Passport/Editor/PassportPostprocess.cs +++ b/src/Packages/Passport/Editor/PassportPostprocess.cs @@ -48,6 +48,12 @@ public void OnPostprocessBuild(BuildReport report) else if (buildTarget == BuildTarget.iOS) { buildDataPath = Path.GetFullPath($"{buildOutputPath}/{buildAppName}/Data/"); + Debug.Log($"iOS buildDataPath: {buildDataPath}"); + if (!Directory.Exists(buildDataPath)) + { + buildDataPath = Path.GetFullPath($"{buildFullOutputPath}/Data/"); + Debug.Log($"iOS buildDataPath 2: {buildDataPath}"); + } } // Copy passport files to data directory for these target @@ -178,6 +184,6 @@ private void CopyFilesTo(string destinationPath) } } } -} - +} + #endif \ No newline at end of file