diff --git a/gulpfile.js b/gulpfile.js index 098a61e..c8c991b 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -34,7 +34,7 @@ var tsCompileOptions = { }; function spawnCommand(command, args, callback, silent, detached) { - var options = {}; + var options = { maxBuffer: 1024 * 1024 }; if (detached) { options.detached = true; options.stdio = ["ignore"]; @@ -55,7 +55,7 @@ function spawnCommand(command, args, callback, silent, detached) { }; function execCommand(command, args, callback, silent) { - var execProcess = child_process.exec(command + " " + args.join(" ")); + var execProcess = child_process.exec(command + " " + args.join(" "), { maxBuffer: 1024 * 1024 }); if (!silent) execProcess.stdout.pipe(process.stdout); if (!silent) execProcess.stderr.pipe(process.stderr); diff --git a/test/test.ts b/test/test.ts index 71870b9..a37690d 100644 --- a/test/test.ts +++ b/test/test.ts @@ -193,6 +193,11 @@ class RNIOS extends Platform.IOS implements RNPlatform { // Fix the linker flag list in project.pbxproj (pod install adds an extra comma) .then(TestUtil.replaceString.bind(undefined, path.join(iOSProject, TestConfig.TestAppName + ".xcodeproj", "project.pbxproj"), "\"[$][(]inherited[)]\",\\s*[)];", "\"$(inherited)\"\n\t\t\t\t);")) + // Prevent the packager from starting during builds by replacing the script that starts it with nothing. + .then(TestUtil.replaceString.bind(undefined, + path.join(projectDirectory, TestConfig.TestAppName, "node_modules", "react-native", "React", "React.xcodeproj", "project.pbxproj"), + "shellScript = \".*\";", + "shellScript = \"\";")) // Copy the AppDelegate.m to the project .then(TestUtil.copyFile.bind(undefined, path.join(TestConfig.templatePath, "ios", TestConfig.TestAppName, "AppDelegate.m"), @@ -297,10 +302,10 @@ class RNProjectManager extends ProjectManager { return copyDirectoryRecursively(templatePath, path.join(projectDirectory, TestConfig.TestAppName)); } - /** - * Creates a new test application at the specified path, and configures it - * with the given server URL, android and ios deployment keys. - */ + /** + * Creates a new test application at the specified path, and configures it + * with the given server URL, android and ios deployment keys. + */ public setupProject(projectDirectory: string, templatePath: string, appName: string, appNamespace: string, version?: string): Q.Promise { if (fs.existsSync(projectDirectory)) { del.sync([projectDirectory], { force: true });