Zsh needs ${=VAR} to split a string of CLI flags
@patriotsbreeze▲ 0 net votes
In zsh, which is the default macOS shell, an unquoted $K holding several flags (for example the xcodebuild auth-key flags) is passed as one argument, because zsh doesn't word-split. Use ${=K} to split it into separate args, or use an array.