Update ios_runner template to dynamically receive options The SDK_VERSION and SIM_DEVICE variables in the runner script had hard-coded values. This change updates them to be set by the template expansion, so they can be controlled by the command-line options. -- Change-Id: I4a299ee781da19546eb137f115b8c174051ceb5f MOS_MIGRATED_REVID=92405720
diff --git a/tools/objc/ios_runner.sh.mac_template b/tools/objc/ios_runner.sh.mac_template index 0d4c25e..94013fc 100644 --- a/tools/objc/ios_runner.sh.mac_template +++ b/tools/objc/ios_runner.sh.mac_template
@@ -21,8 +21,11 @@ exit 1 fi -readonly SDK_VERSION="%sdk_version%" -readonly SIM_DEVICE="%sim_device%" +# Note: SDK_VERSION and SIM_DEVICE might contain spaces, but they are already +# provided in quoted form in the template variables, so we should not quote them +# again here. +readonly SDK_VERSION=%sdk_version% +readonly SIM_DEVICE=%sim_device% readonly APP_DIR=$(mktemp -d -t extracted_app) args=()