Skip to content

Commit d2804db

Browse files
committed
Update IOS.py
1 parent e41fa19 commit d2804db

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

Platform/IOS.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,19 @@ def PostPackaged_UseLegencyXcodeProject(self):
294294
OneXcodeCommand = XcodeCommand()
295295

296296
params = ParamsXcodebuild()
297-
name_workspace = uproject_name + "_IOS.xcworkspace"
298-
params.workspace = path_project_root / name_workspace
297+
298+
# Legacy UE4 Workspace Logic
299+
# Try to find valid workspace in root first (UE4 convention)
300+
# Or Intermediate/ProjectFiles
301+
302+
name_workspace_root = uproject_name + ".xcworkspace"
303+
path_workspace_root = path_project_root / name_workspace_root
304+
305+
if path_workspace_root.exists():
306+
params.workspace = path_workspace_root
307+
else:
308+
PrintLog(f"Cannot find workspace in root path {path_workspace_root}")
309+
299310
params.scheme = uproject_name
300311

301312
ioscert_tag_name = self.Params['ioscert']

0 commit comments

Comments
 (0)