From 07fc9f6442c34b677eaafcedc1d578352da11925 Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Wed, 3 Oct 2018 14:12:54 -0700 Subject: [PATCH] Fix mkdir call to not fail if dir exists (#22622) --- packages/flutter_tools/bin/xcode_backend.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter_tools/bin/xcode_backend.sh b/packages/flutter_tools/bin/xcode_backend.sh index dc6750ca7a4..21bf98273b3 100755 --- a/packages/flutter_tools/bin/xcode_backend.sh +++ b/packages/flutter_tools/bin/xcode_backend.sh @@ -151,7 +151,7 @@ BuildApp() { # `App.framework` it throws an error, which aborts the app store upload. # To avoid this, we place the dSYM files in a folder ending with ".noindex", # which hides it from Spotlight, https://github.com/flutter/flutter/issues/22560. - mkdir "${build_dir}/dSYMs.noindex" + RunCommand mkdir -p -- "${build_dir}/dSYMs.noindex" RunCommand xcrun dsymutil -o "${build_dir}/dSYMs.noindex/App.framework.dSYM" "${app_framework}/App" if [[ $? -ne 0 ]]; then EchoError "Failed to generate debug symbols (dSYM) file for ${app_framework}/App."