+min_available_ios_sdk_version()
+{
+ ls "${ios_sdk_directory}" |
+ grep --invert-match --ignore-case "internal" | # exclude internal SDKs
+ sort --version-sort | head -n 1 | # take SDK with min version
+ sed "s/^iPhoneOS\(.*\)\.sdk$/\1/" # return only the version string
+}
+version_ge()
+{
+ test "$(printf '%s\n' "$@" | sort --version-sort | head -n 1)" == "$2";
+}
+if [ -d $ios_sdk_directory ]