Skip to content

Commit 186d571

Browse files
committed
fix: passport post process ios build data path
1 parent ac81423 commit 186d571

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/Packages/Passport/Editor/PassportPostprocess.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ public void OnPostprocessBuild(BuildReport report)
4848
else if (buildTarget == BuildTarget.iOS)
4949
{
5050
buildDataPath = Path.GetFullPath($"{buildOutputPath}/{buildAppName}/Data/");
51+
Debug.Log($"iOS buildDataPath: {buildDataPath}");
52+
if (!Directory.Exists(buildDataPath))
53+
{
54+
buildDataPath = Path.GetFullPath($"{buildFullOutputPath}/Data/");
55+
Debug.Log($"iOS buildDataPath 2: {buildDataPath}");
56+
}
5157
}
5258

5359
// Copy passport files to data directory for these target
@@ -178,6 +184,6 @@ private void CopyFilesTo(string destinationPath)
178184
}
179185
}
180186
}
181-
}
182-
187+
}
188+
183189
#endif

0 commit comments

Comments
 (0)