From f01432d41c7a463e9440c4a5ae4313f5b1355eb3 Mon Sep 17 00:00:00 2001 From: Ilya Grechuhin Date: Fri, 10 Nov 2017 10:11:21 +0300 Subject: [PATCH] [cherry] [release-76-crash-fix] [ios] Fixed crash with wrong format specifier. --- iphone/Maps/Categories/String+Format.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iphone/Maps/Categories/String+Format.swift b/iphone/Maps/Categories/String+Format.swift index 2f06abe0ba..9b1d7843a3 100644 --- a/iphone/Maps/Categories/String+Format.swift +++ b/iphone/Maps/Categories/String+Format.swift @@ -1,6 +1,6 @@ extension String { init(coreFormat: String, arguments: [CVarArg]) { let format = coreFormat.replacingOccurrences(of: "%s", with: "%@") - self.init(format: format, arguments: arguments) + self.init(format: format, arguments: arguments.map { "\($0)" }) } }