Skip to content

Commit 6adac94

Browse files
Collect all warnings upon pod installing
1 parent c579ae8 commit 6adac94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/services/ios-project-service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -516,15 +516,15 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
516516
let podTool = this.$config.USE_POD_SANDBOX ? "sandbox-pod" : "pod";
517517
let childProcess = this.$childProcess.spawnFromEvent(podTool, ["install"], "close", { cwd: this.platformData.projectRoot, stdio: ['pipe', process.stdout, 'pipe'] }).wait();
518518
if (childProcess.stderr) {
519-
let warnings = childProcess.stderr.match(/(\u001b\[(?:\d*;){0,5}\d*m[\s\S]+?\u001b\[(?:\d*;){0,5}\d*m)|(\[!\].*?\n)/g);
519+
let warnings = childProcess.stderr.match(/(\u001b\[(?:\d*;){0,5}\d*m[\s\S]+?\u001b\[(?:\d*;){0,5}\d*m)|(\[!\].*?\n)|(.*?warning.*)/gi);
520520
_.each(warnings, (warning: string) => {
521521
this.$logger.warnWithLabel(warning.replace("\n", ""));
522522
});
523523

524524
// HACK for silencing irrelevant linking warnings when pod installing on
525525
// El Capitan with cocoa pods version 0.38.2
526526
// Reference https://github.com/CocoaPods/CocoaPods/issues/4302
527-
let errors = childProcess.stderr.replace(/dyld: warning, LC_RPATH @executable_path.*?@executable_path/g, "");
527+
let errors = childProcess.stderr;
528528
_.each(warnings, warning => {
529529
errors = errors.replace(warning, "");
530530
});

0 commit comments

Comments
 (0)