Skip to content

Apple Xcode - Process Steps

Install Application

Installs the iOS application (an .ipa or .app file).

NameTypeDescriptionRequired
Application PathtextBoxThe path to the iOS application (an .app or .ipa file) to install on the target, for example, myApp.app or /tmp/myApp.app. The default value is the application property that is configured in the component properties.Yes
Device IdentifiertextBoxThe unique device identifier of the physical device or simulator to install the application on. If the device identifier is specified, then the Simulator Name and Target OS values are not used. If the process includes the Create Simulator step, then the deviceID output property can be used to identify the simulator that was created, for example, ${p?:Create Simulator/deviceID}.No
Simulator NametextBoxThe name of the simulator to use, for example, myIphone. Note: Both the Simulator Name and Target OS must be specified when the Device Identifier is not specified.No
Target OStextBoxThe target OS, for example, 7.1 or 8.1.No
Simulator Device TypetextBoxThe simulator Device Type string from Xcode, for example, iPhone 6 Plus or Resizable iPad. Note: This property is optional. It's used in case more than one simulator have the same name and same target OS.No
ReinstallcheckBoxReinstalls the app. You must select this option if the app is already installed on the target. Otherwise, the step fails.No
Path to xcruntextBoxIf you have more than one version of Xcode installed, use this property to specify the alternate path, for example, /Applications/Xcode 1.app. If the value is not specified, the value from the system path is used.No
TimeouttextBoxThe amount of time (in milliseconds) to attempt to install the app on the target device. By default, the step uses a timeout of 5 minutes. This property does not apply to simulators.No

Remove Application

Removes the iOS application.

NameTypeDescriptionRequired
Bundle IdentifiertextBoxThe bundle identifier of the application to remove, for example, com.example.appName. The default value is the bundle identifier that is configured in the component properties.Yes
Device IdentifiertextBoxThe unique device identifier of the physical device or simulator to remove the application from. If the device identifier is specified, then the Simulator Name and Target OS values are not used. If the process includes the Create Simulator step, then the deviceID output property can be used to identify the simulator that was created, for example, ${p?:Create Simulator/deviceID}.No
Simulator NametextBoxThe name of the simulator to use, for example, myIphone. Note: Both the Simulator Name and Target OS must be specified when the Device Identifier is not specified.No
Target OStextBoxThe target OS, for example, 7.1 or 8.1.No
Simulator Device TypetextBoxThe simulator Device Type string from Xcode, for example, iPhone 6 Plus or Resizable iPad. Note: This property is optional. It's used in case more than one simulator have the same name and same target OS.No
Path to xcruntextBoxIf you have more than one version of Xcode installed, use this property to specify the alternate path, for example, /Applications/Xcode 1.app. If the value is not specified, the value from the system path is used.No
TimeouttextBoxThe amount of time (in milliseconds) to attempt to uninstall the app on the target device. By default, the step uses a timeout of 5 minutes. This property does not apply to simulators.No

UI Test

Runs the specified test case that simulates a user who is interacting with an application.

NameTypeDescriptionRequired
Application PathtextBoxThe path to the iOS application (an .app or .ipa file) to test on the target, for example, myApp.app or /tmp/myApp.app. The default value is the application property that is configured in the component properties.Yes
Test ScripttextBoxThe test script file (.js) to run.Yes
Output DirectorytextBoxThe directory for test output. The directory must exist before you specify it. If the path that you specify for output does not exist, the process fails.Yes
Device IdentifiertextBoxThe unique device identifier of the physical device or simulator to run the test on. If you are testing on a device, then you must first install the app. If the device identifier is specified, then the Simulator Name and Target OS values are not used. If the process includes the Create Simulator step, then the deviceID output property can be used to identify the simulator that was created, for example, ${p?:Create Simulator/deviceID}.No
Simulator NametextBoxThe name of the simulator to use, for example, myIphone. Note: Both the Simulator Name and Target OS must be specified when the Device Identifier is not specified.No
Target OStextBoxThe target OS, for example, 7.1 or 8.1.No
Simulator Device TypetextBoxThe simulator Device Type string from Xcode, for example, iPhone 6 Plus or Resizable iPad. Note: This property is optional. It's used in case more than one simulator have the same name and same target OS.No
Path to XcodetextBoxThe path to the Xcode installation. If no value is specified, the default value, /Applications/Xcode.app, is used.No
Trace TemplatetextBoxThe path, which is specified as relative to the Xcode installation path, for the .tracetemplate file to use when the UI test is run. If no value is specified, a default value of /Contents/Applications/Instruments.app/ Contents/PlugIns/AutomationInstrument.bundle/Contents/ Resources/Automation.tracetemplate is used.No
Path to xcruntextBoxIf you have more than one version of Xcode installed, use this property to specify the alternate path, for example, /Applications/Xcode 1.app. If the value is not specified, the value from the system path is used.No
TimeouttextBoxA timeout (in milliseconds), after which the UI test is stopped. By default, the step does not time out.No

Unit Test

Runs the specified unit test against the application.

NameTypeDescriptionRequired
Project NametextBoxThe name of the project to use for testing.No
Workspace NametextBoxThe name of the workspace to use for testing. If a project is specified, the workspace value is not used.No
Scheme NametextBoxThe name of the scheme to use for testing.Yes
Destination StringtextAreaBoxA line-separated list or file of targets for testing on. Each target is a string in xcodebuild syntax, for example, the list might be similar to this string: "platform=iOS Simulator,name=iPhone,OS=8.1". If the destination string is specified, the device identifier, simulator type, and target OS are not used.No
Device IdentifiertextBoxThe unique device identifier of the physical device or simulator to run the test on. If the device identifier is specified, then the Simulator Name and target OS values are not used. If the process includes the Create Simulator step, then the deviceID output property can be used to identify the simulator that was created, for example, ${p?:Create Simulator/deviceID}.No
Simulator NametextBoxThe name of the simulator to use, for example, myIphone.No
Target OStextBoxThe target OS, for example, 7.1 or 8.1. Note: If no target OS is specified, the most recent default value is used.No
Simulator Device TypetextBoxThe simulator Device Type string from Xcode, for example, iPhone 6 Plus or Resizable iPad. Note: This property is optional. It's used in case more than one simulator have the same name and same target OS.No
Destination Search TimeouttextBoxThe amount of time to search for the test target. If the target is not located, the step fails. The system default value is used if no value is specified. (See "man xcodebuild" for details).No
Path to xcruntextBoxIf you have more than one version of Xcode installed, use this property to specify the alternate path, for example, /Applications/Xcode 1.app. If the value is not specified, the value from the system path is used.No
TimeouttextBoxA timeout (in milliseconds), after which the unit test stops. By default, the step does not time out.No

xcrun

Runs the iOS xcrun command.

NameTypeDescriptionRequired
Path to xcruntextBoxIf you have more than one version of Xcode installed, use this property to specify the alternate path, for example, /Applications/Xcode 1.app. If the value is not specified, the value from the system path is used.No
Additional ArgumentstextAreaBoxAdditional arguments for the xcrun tool. The format can be a path to a file or a new line-separated list of arguments. For example, the arguments might look like this string: /opt/test.properties or --show-sdk-path.No
TimeouttextBoxThe amount of time (in milliseconds) to attempt to run the xcrun command on the target. By default, the step does not time out.No

Create Simulator

Creates a simulator.

NameTypeDescriptionRequired
Simulator NametextBoxThe name of the simulator to create, for example, myIphone.Yes
Target OStextBoxThe target OS, for example, 7.1 or 8.1.Yes
Simulator Device TypetextBoxThe simulator Device Type string from Xcode, for example, iPhone 6 Plus or Resizable iPad.Yes
Path to xcruntextBoxIf you have more than one version of Xcode installed, use this property to specify the alternate path, for example, /Applications/Xcode 1.app. If the value is not specified, the value from the system path is used.No

Delete Simulator

Deletes a simulator.

NameTypeDescriptionRequired
Device IdentifiertextBoxThe unique device identifier of the simulator to be deleted. If the device identifier is specified, then the Simulator Name and target OS values are not used. If the process includes the Create Simulator step, then the deviceID output property can be used to identify the simulator that was created, for example, ${p?:Create Simulator/deviceID}.No
Simulator NametextBoxThe name of the simulator to delete, for example, myIphone. Note: Both the Simulator Name and Target OS must be specified when the Device Identifier is not specified.No
Target OStextBoxThe target OS, for example, 7.1 or 8.1.No
Simulator Device TypetextBoxThe simulator Device Type string from Xcode, for example, iPhone 6 Plus or Resizable iPad. Note: This property is optional. It's used in case more than one simulator have the same name and same target OS.No
Path to xcruntextBoxIf you have more than one version of Xcode installed, use this property to specify the alternate path, for example, /Applications/Xcode 1.app. If the value is not specified, the value from the system path is used.No

Start Simulator

Starts a simulator. The step fails if a simulator is already running.

NameTypeDescriptionRequired
Device IdentifiertextBoxThe unique device identifier of the simulator to start. If the device identifier is specified, then the Simulator Name and target OS values are not used. If the process includes the Create Simulator step, then the deviceID output property can be used to identify the simulator that was created, for example, ${p?:Create Simulator/deviceID}.No
Simulator NametextBoxThe name of the simulator to use, for example, myIphone. Note: Both the Simulator Name and Target OS must be specified when the Device Identifier is not specified.No
Target OStextBoxThe target OS, for example, 7.1 or 8.1.No
Simulator Device TypetextBoxThe simulator Device Type string from Xcode, for example, iPhone 6 Plus or Resizable iPad. Note: This property is optional. It's used in case more than one simulator have the same name and same target OS.No
Path to XcodetextBoxThe path to the Xcode installation. If no value is specified, the default value, /Applications/Xcode.app, is used.No
Path to xcruntextBoxIf you have more than one version of Xcode installed, use this property to specify the alternate path, for example, /Applications/Xcode 1.app. If the value is not specified, the value from the system path is used.No
Startup Polling Maximum RetriestextBoxThe maximum number of times to attempt polling for a simulator startup every 10 seconds. The default value is 10.Yes

Stop Simulator

Stops the simulator. The step fails if no simulator is running.

NameTypeDescriptionRequired