Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions src/commands/ios_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,17 @@ parameters:
type: string
default: "ios/build"
device:
description: The type of device you want to build for.
description: The name of device you want to build for.
type: string
default: "iPhone 11"
device_id:
description: UUID of device you want to build for.
type: string
default: ""
device_os:
description: OS of device you want to build for, e.g 18.5.
type: string
default: ""
scheme:
description: The scheme to use.
type: string
Expand All @@ -40,7 +48,16 @@ steps:

- run:
name: Build iOS App
command: "export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -<<parameters.project_type>> <<parameters.project_path>> -destination 'platform=iOS Simulator,name=<<parameters.device>>' -scheme '<<parameters.scheme>>' -parallelizeTargets -configuration <<parameters.build_configuration>> -derivedDataPath <<parameters.derived_data_path>> -UseModernBuildSystem=YES | xcpretty -k"
command: |
DESTINATION="platform=iOS Simulator,name=<<parameters.device>>"
if [ "<<parameters.device_id>>" != "" ]; then
DESTINATION="${DESTINATION},id=<<parameters.device_id>>"
fi
if [ "<<parameters.device_os>>" != "" ]; then
DESTINATION="${DESTINATION},OS=<<parameters.device_os>>"
fi
export RCT_NO_LAUNCH_PACKAGER=true
xcodebuild -<<parameters.project_type>> <<parameters.project_path>> -destination "${DESTINATION}" -scheme '<<parameters.scheme>>' -parallelizeTargets -configuration <<parameters.build_configuration>> -derivedDataPath <<parameters.derived_data_path>> -UseModernBuildSystem=YES | xcpretty -k

- when:
condition: <<parameters.cache>>
Expand Down
10 changes: 10 additions & 0 deletions src/jobs/ios_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ parameters:
description: The type of device you want to build for.
type: string
default: "iPhone 11"
device_id:
description: UUID of device you want to build for.
type: string
default: ""
device_os:
description: OS of device you want to build for, e.g 18.5.
type: string
default: ""
scheme:
description: The scheme to use.
type: string
Expand Down Expand Up @@ -132,6 +140,8 @@ steps:
project_path: <<parameters.project_path>>
derived_data_path: <<parameters.derived_data_path>>
device: <<parameters.device>>
device_id: <<parameters.device_id>>
device_os: <<parameters.device_os>>
build_configuration: <<parameters.build_configuration>>
scheme: <<parameters.scheme>>
project_type: <<parameters.project_type>>
Expand Down