From 9be66fd197fcc62346316d6cc15188eecdbb1a7c Mon Sep 17 00:00:00 2001 From: a-maurice Date: Thu, 23 Jul 2026 16:30:34 -0700 Subject: [PATCH] Add explicit device logic to the iOS build script --- scripts/gha/build_ios_tvos.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/gha/build_ios_tvos.py b/scripts/gha/build_ios_tvos.py index b7ba68d252..62d68b557b 100644 --- a/scripts/gha/build_ios_tvos.py +++ b/scripts/gha/build_ios_tvos.py @@ -483,10 +483,14 @@ def cmake_configure(source_path, build_path, toolchain, archive_output_path, cmd.append('-DCMAKE_SYSTEM_NAME=iOS') if platform_variant == 'simulator': cmd.append('-DCMAKE_OSX_SYSROOT=iphonesimulator') + elif platform_variant == 'device': + cmd.append('-DCMAKE_OSX_SYSROOT=iphoneos') elif apple_os == 'tvos': cmd.append('-DCMAKE_SYSTEM_NAME=tvOS') if platform_variant == 'simulator': cmd.append('-DCMAKE_OSX_SYSROOT=appletvsimulator') + elif platform_variant == 'device': + cmd.append('-DCMAKE_OSX_SYSROOT=appletvos') cmd.append('-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY={0}'.format(archive_output_path)) cmd.append('-DCMAKE_LIBRARY_OUTPUT_DIRECTORY={0}'.format(archive_output_path)) cmd.append('-DCMAKE_RUNTIME_OUTPUT_DIRECTORY={0}'.format(archive_output_path))