Skip to content

Commit 934e8ca

Browse files
committed
Using plistutil to handle conversion of binary format plist files
1 parent a1fefa0 commit 934e8ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Runner.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,8 @@ function generate_compiler_wrappers!(platform::AbstractPlatform; bin_path::Abstr
10111011
}
10121012
10131013
show_sdk_version() {
1014-
grep -A1 '<key>Version</key>' \$1/SDKSettings.plist \
1014+
plistutil -f xml -i \$1/SDKSettings.plist
1015+
| grep -A1 '<key>Version</key>' \
10151016
| tail -n1 \
10161017
| sed -E -e 's/\\s*<string>([^<]+)<\\/string>\\s*/\\1/'
10171018
}

0 commit comments

Comments
 (0)