Skip to content

Commit bfb727d

Browse files
committed
feat: update xcode permission by command - test
1 parent 94ddc43 commit bfb727d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Platform/IOS.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,16 @@ def PostPackaged_UseMordenXcodeProject(self):
240240
team_id = OneIOSCert.get_team_id
241241
provisioning_profile_specifier = OneIOSCert.get_provisioning_profile_specifier
242242

243-
UnrealProjectManager.AddIOSBroadcastExtension(path_project_root, path_ue_config_resources, team_id, provisioning_profile_specifier)
243+
# [Fix] Get App Bundle ID from Config for Modern Project as well
244+
path_ini = path_project_root / "Config" / "DefaultEngine.ini"
245+
app_bundle_id = UnrealConfigIniManager.GetConfig(path_ini, "[/Script/IOSRuntimeSettings.IOSRuntimeSettings]", "BundleIdentifier")
246+
if not app_bundle_id:
247+
PrintWarn(f"Could not read BundleIdentifier from {path_ini}, check Config.")
248+
app_bundle_id = ""
249+
else:
250+
PrintLog(f"Read BundleIdentifier from Config: {app_bundle_id}")
251+
252+
UnrealProjectManager.AddIOSBroadcastExtension(path_project_root, path_ue_config_resources, team_id, provisioning_profile_specifier, app_bundle_id)
244253

245254
OneXcodeCommand = XcodeCommand()
246255
params = ParamsXcodebuild()

0 commit comments

Comments
 (0)