forked from firka/flutter
Set the LANG when invoking cocoapods (#45710)
This commit is contained in:
@@ -333,6 +333,9 @@ Future<void> _flutterBuildIpa(String relativePathToApplication) async {
|
||||
await runCommand('pod',
|
||||
<String>['install'],
|
||||
workingDirectory: podfile.parent.path,
|
||||
environment: <String, String>{
|
||||
'LANG': 'en_US.UTF-8',
|
||||
},
|
||||
);
|
||||
}
|
||||
await runCommand(flutter,
|
||||
|
||||
@@ -17,7 +17,13 @@ Future<void> main() async {
|
||||
'${flutterDirectory.path}/examples/flutter_view/ios',
|
||||
);
|
||||
await inDirectory(iosDirectory, () async {
|
||||
await exec('pod', <String>['install']);
|
||||
await exec(
|
||||
'pod',
|
||||
<String>['install'],
|
||||
environment: <String, String>{
|
||||
'LANG': 'en_US.UTF-8',
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
final TaskFunction taskFunction = createFlutterViewStartupTest();
|
||||
|
||||
@@ -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>[
|
||||
|
||||
@@ -24,7 +24,13 @@ Future<void> main() async {
|
||||
'$platformViewDirectoryPath/ios',
|
||||
);
|
||||
await inDirectory(iosDirectory, () async {
|
||||
await exec('pod', <String>['install']);
|
||||
await exec(
|
||||
'pod',
|
||||
<String>['install'],
|
||||
environment: <String, String>{
|
||||
'LANG': 'en_US.UTF-8',
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
final TaskFunction taskFunction = createPlatformViewStartupTest();
|
||||
|
||||
@@ -45,6 +45,9 @@ Future<void> main() async {
|
||||
objcPodspecPath,
|
||||
'--allow-warnings',
|
||||
],
|
||||
environment: <String, String>{
|
||||
'LANG': 'en_US.UTF-8',
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
@@ -60,6 +63,9 @@ Future<void> main() async {
|
||||
'--allow-warnings',
|
||||
'--use-libraries',
|
||||
],
|
||||
environment: <String, String>{
|
||||
'LANG': 'en_US.UTF-8',
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user