Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to launch the iOS Simulator from the command line.
iOS Swift
xcrun simctl [1] <device-uuid> Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'shutdown' instead of 'boot' will turn off the simulator.
Using 'list' only shows devices but does not start one.
✗ Incorrect
The boot command starts the simulator device.
2fill in blank
mediumComplete the code to list all available simulator devices.
iOS Swift
xcrun simctl [1] devices Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'boot' will try to start a device, not list them.
Using 'create' or 'delete' changes devices, not lists them.
✗ Incorrect
The list command shows all simulator devices available.
3fill in blank
hardFix the error in the command to install an app on the simulator.
iOS Swift
xcrun simctl [1] <device-uuid> <path-to-app> Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'boot' tries to start the device, not install an app.
Using 'launch' requires the app to be already installed.
✗ Incorrect
The install command installs an app on the specified simulator device.
4fill in blank
hardFill both blanks to create a new simulator device with a specific name and device type.
iOS Swift
xcrun simctl create [1] [2] com.apple.CoreSimulator.SimRuntime.iOS-17-0
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping device name and type will cause errors.
Using invalid device types will fail to create the device.
✗ Incorrect
The first blank is the device name, the second is the device type identifier.
5fill in blank
hardFill all three blanks to launch an app on a booted simulator device.
iOS Swift
xcrun simctl [1] [2] [3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'install' instead of 'launch' will only install, not run the app.
Using wrong device UUID or bundle ID will cause failure.
✗ Incorrect
The launch command runs the app identified by its bundle ID on the device UUID.