From cd24f4c45f6b38e7f3dc73cf0afda9b86b3d85d4 Mon Sep 17 00:00:00 2001 From: Jason Wray Date: Mon, 13 May 2019 14:40:49 -0700 Subject: [build, darwin] Fix ENOBUFS in build scripts on NodeJS 12.x --- platform/darwin/scripts/check-public-symbols.js | 2 +- platform/darwin/scripts/update-examples.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/darwin/scripts/check-public-symbols.js b/platform/darwin/scripts/check-public-symbols.js index 4dde5d677b..a2045f81ec 100755 --- a/platform/darwin/scripts/check-public-symbols.js +++ b/platform/darwin/scripts/check-public-symbols.js @@ -18,7 +18,7 @@ function hasMissingSymbols(os) { let umbrellaPath = `platform/${os.toLowerCase()}/src/Mapbox.h`; let docArgs = ['doc', '--objc', umbrellaPath, '--', '-x', 'objective-c', '-I', 'platform/darwin/src/', '-isysroot', sysroot]; - let docStr = execFileSync('sourcekitten', docArgs).toString().trim(); + let docStr = execFileSync('sourcekitten', docArgs, { maxBuffer: Infinity }).toString().trim(); let docJson = JSON.parse(docStr); _.forEach(docJson, function (result) { _.forEach(result, function (structure, path) { diff --git a/platform/darwin/scripts/update-examples.js b/platform/darwin/scripts/update-examples.js index f87ed07288..885b26248c 100755 --- a/platform/darwin/scripts/update-examples.js +++ b/platform/darwin/scripts/update-examples.js @@ -75,7 +75,7 @@ function completeExamples(os) { let umbrellaPath = `platform/${os.toLowerCase()}/src/Mapbox.h`; let docArgs = ['doc', '--objc', umbrellaPath, '--', '-x', 'objective-c', '-I', 'platform/darwin/src/', '-isysroot', sysroot]; - let docStr = execFileSync('sourcekitten', docArgs).toString().trim(); + let docStr = execFileSync('sourcekitten', docArgs, { maxBuffer: Infinity }).toString().trim(); let docJson = JSON.parse(docStr); _.forEach(docJson, function (result) { _.forEach(result, function (structure, path) { -- cgit v1.2.1