Skip to content

Commit 870ca6d

Browse files
committed
Add instructions on how to create a 32-bit iOS simulator device
iPhone 5 device does not come preconfigured in the latest Xcode (11.4.1).
1 parent 0ab9fd7 commit 870ca6d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

docs/Testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ uses an iOS 10.3 simulator configuration named "iPhone 5" for 32-bit testing.
3838
window, or with the command line:
3939

4040
```sh
41-
xcrun simctl create 'iPhone 5' 'com.apple.CoreSimulator.SimDeviceType.iPhone-5'
41+
xcrun simctl create 'iPhone 5' com.apple.CoreSimulator.SimDeviceType.iPhone-5 com.apple.CoreSimulator.SimRuntime.iOS-10-3
4242
```
4343

4444
3. Append `--ios` to the `utils/build-script` command line (see below).

test/lit.cfg

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,10 @@ def get_simulator_command(run_os, run_cpu, sdk_path):
8282
if run_os == 'ios':
8383
if run_cpu == "i386":
8484
if min(darwin_get_ios_sim_vers()) > 10.3:
85-
print("ERROR: Install iOS 10.3 or older simulator for 32bit testing")
86-
print("INFO: Xcode -> Preferences -> Components -> Simulators")
85+
print("ERROR: Your system does not have a 32-bit iOS simulator installed.")
86+
print("INFO: 1. Install iOS 10.3 or older simulator (Xcode -> Preferences -> Components -> Simulators).")
87+
print("INFO: 2. Create a 32-bit iPhone 5 device. Run:")
88+
print("INFO: $ xcrun simctl create 'iPhone 5' com.apple.CoreSimulator.SimDeviceType.iPhone-5 com.apple.CoreSimulator.SimRuntime.iOS-10-3")
8789
sys.exit(1)
8890
else:
8991
return "simctl spawn --standalone 'iPhone 5'"

0 commit comments

Comments
 (0)