From 1a2e6f3389e78e026d15a78d933c2cbdcd54f5a9 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Fri, 10 Mar 2017 09:32:58 -0800 Subject: [PATCH] Support Xcode builds in project dirs with spaces (#8709) Use line-based iteration in place of word-based iteration over the framework directories, to avoid breaking on spaces. --- 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 22e96d1d80..bb13affde0 100755 --- a/packages/flutter_tools/bin/xcode_backend.sh +++ b/packages/flutter_tools/bin/xcode_backend.sh @@ -191,7 +191,7 @@ ThinAppFrameworks() { local frameworks_dir="${app_path}/Frameworks" [[ -d "$frameworks_dir" ]] || return 0 - for framework_dir in $(find "${app_path}" -type d -name "*.framework"); do + find "${app_path}" -type d -name "*.framework" | while read framework_dir; do ThinFramework "$framework_dir" "$ARCHS" done }