diff --git a/src/commands/ios_build.yml b/src/commands/ios_build.yml index e185089..bd86f2f 100644 --- a/src/commands/ios_build.yml +++ b/src/commands/ios_build.yml @@ -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 @@ -40,7 +48,16 @@ steps: - run: name: Build iOS App - command: "export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -<> <> -destination 'platform=iOS Simulator,name=<>' -scheme '<>' -parallelizeTargets -configuration <> -derivedDataPath <> -UseModernBuildSystem=YES | xcpretty -k" + command: | + DESTINATION="platform=iOS Simulator,name=<>" + if [ "<>" != "" ]; then + DESTINATION="${DESTINATION},id=<>" + fi + if [ "<>" != "" ]; then + DESTINATION="${DESTINATION},OS=<>" + fi + export RCT_NO_LAUNCH_PACKAGER=true + xcodebuild -<> <> -destination "${DESTINATION}" -scheme '<>' -parallelizeTargets -configuration <> -derivedDataPath <> -UseModernBuildSystem=YES | xcpretty -k - when: condition: <> diff --git a/src/jobs/ios_build.yml b/src/jobs/ios_build.yml index 0f277b1..1014d9a 100644 --- a/src/jobs/ios_build.yml +++ b/src/jobs/ios_build.yml @@ -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 @@ -132,6 +140,8 @@ steps: project_path: <> derived_data_path: <> device: <> + device_id: <> + device_os: <> build_configuration: <> scheme: <> project_type: <>