Utils.RunProcess(Logger, "xcodebuild", args.ToString(), workingDir: Path.GetDirectoryName(xcodePrjPath));
- string appPath = Path.Combine(Path.GetDirectoryName(xcodePrjPath)!, config + "-" + sdk,
- Path.GetFileNameWithoutExtension(xcodePrjPath) + ".app");
+ string appDirectory = Path.Combine(Path.GetDirectoryName(xcodePrjPath)!, config + "-" + sdk);
+ if (!Directory.Exists(appDirectory))
+ {
+ // cmake 3.25.0 seems to have changed the output directory for MacCatalyst, move it back to the old format
+ string appDirectoryWithoutSdk = Path.Combine(Path.GetDirectoryName(xcodePrjPath)!, config);
+ Directory.Move(appDirectoryWithoutSdk, appDirectory);
+ }
+
+ string appPath = Path.Combine(appDirectory, Path.GetFileNameWithoutExtension(xcodePrjPath) + ".app");
if (destination != null)
{