# Launch the process using simctl
self.assertIsNotNone(deviceUDID)
+
exe_name = 'test_simulator_platform_{}'.format(platform_name)
sdkroot = lldbutil.get_xcode_sdk_root(sdk)
vers = lldbutil.get_xcode_sdk_version(sdk)
+
+ # Older versions of watchOS (<7.0) only support i386
+ if platform_name == 'watchos':
+ from distutils.version import LooseVersion
+ if LooseVersion(vers) < LooseVersion("7.0"):
+ arch = 'i386'
+
triple = '-'.join([arch, 'apple', platform_name + vers, 'simulator'])
version_min = '-m{}-simulator-version-min={}'.format(platform_name, vers)
self.build(