Set the LANG when invoking cocoapods (#45710)

This commit is contained in:
Dan Field
2019-12-02 13:26:32 -08:00
committed by GitHub
parent afb8f38211
commit 088fa24463
7 changed files with 54 additions and 9 deletions

View File

@@ -242,7 +242,13 @@ Future<void> main() async {
final File objectiveCAnalyticsOutputFile = File(path.join(tempDir.path, 'analytics-objc.log'));
final Directory objectiveCBuildDirectory = Directory(path.join(tempDir.path, 'build-objc'));
await inDirectory(objectiveCHostApp, () async {
await exec('pod', <String>['install']);
await exec(
'pod',
<String>['install'],
environment: <String, String>{
'LANG': 'en_US.UTF-8',
},
);
await exec(
'xcodebuild',
<String>[
@@ -325,7 +331,13 @@ Future<void> main() async {
final Directory swiftBuildDirectory = Directory(path.join(tempDir.path, 'build-swift'));
await inDirectory(swiftHostApp, () async {
await exec('pod', <String>['install']);
await exec(
'pod',
<String>['install'],
environment: <String, String>{
'LANG': 'en_US.UTF-8',
},
);
await exec(
'xcodebuild',
<String>[