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