Skip to content

Commit e3efe84

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

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/services/ios-project-service.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -516,15 +516,12 @@ 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

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

0 commit comments

Comments
 (0)