XCode with YAML
List of YAML parameters and examples for the "XCode" action.
YAML Parameters for XCode
名称 | 类型 | 描述 |
---|---|---|
action 必填 | String | The ID of the action. |
type 必填 | String | The type of the action. Should be set to NATIVE_BUILD_MAC . |
working_directory 必填 | String | The directory in which the pipeline filesystem will be mounted. |
commands 必填 | String[] | The commands that will be executed. |
image 必填 | String | The XCode version for the action. Available values: 11.7 , 10.3 , 12.1 , 12.2 , 12 . |
execute_every_command | Boolean | If set to true all commands will be executed regardless of the result of the previous command. |
sync_paths | SyncPath[] | Define file paths that should be copied before PIPELINE_TO_VM and after the execution VM_TO_PIPELINE . |
preStartSimulators | String[] | A series of simulators to be launched before the action starts. Available values: iPhone SE (2nd generation) , Apple Watch Series 4 - 44mm , Apple Watch Series 5 - 44mm , iPhone 11 , iPhone 8 , Apple TV , iPhone 11 Pro , iPhone 11 Pro Max , Apple TV 4K (at 1080p) , Apple TV 4K , iPad Pro (11-inch) (2nd generation) , iPad Air (3rd generation) , iPad (7th generation) , iPad Pro (12.9-inch) (4th generation) , iPhone 8 Plus , Apple Watch Series 4 - 40mm , Apple Watch Series 5 - 40mm , iPad Pro (9.7-inch) |
YAML example for XCode
actions:
- action: "Execute: fastlane snapshot"
type: "NATIVE_BUILD_MAC"
working_directory: "/Users/buddy/build"
commands:
- "fastlane snapshot"
image: "12.2"
sync_paths:
- pipeline_path: "/"
vm_path: "/Users/buddy/build"
direction: "PIPELINE_TO_VM"
- pipeline_path: "/"
vm_path: "/Users/buddy/build"
direction: "VM_TO_PIPELINE"
pre_start_simulators:
- "Apple TV"
- "Apple TV 4K"