[Gradle] Excplictly pass locale to CocoaPods invocations

^KT-59522 Verification Pending
This commit is contained in:
Artem Daugel-Dauge
2023-06-21 22:38:46 +02:00
committed by Space Team
parent f14a713e49
commit 67c19b00e0
2 changed files with 2 additions and 2 deletions
@@ -154,8 +154,6 @@ fun cocoaPodsEnvironmentVariables(): Map<String, String> {
return mapOf(
"PATH" to path,
"GEM_PATH" to gemPath,
// CocoaPods 1.11 requires UTF-8 locale being set, more details: https://github.com/CocoaPods/CocoaPods/issues/10939
"LC_ALL" to "en_US.UTF-8"
)
}
@@ -51,6 +51,8 @@ abstract class AbstractPodInstallTask : CocoapodsTask() {
},
processConfiguration = {
directory(workingDir.get())
// CocoaPods requires to be run with Unicode external encoding
environment().putIfAbsent("LC_ALL", "en_US.UTF-8")
})
with(podsXcodeProjDirProvider.get()) {