From 1b5694e264243f4ff68e0a1608b6475d62b79f12 Mon Sep 17 00:00:00 2001 From: scottbommarito Date: Tue, 14 Jun 2016 11:02:41 -0700 Subject: [PATCH] replace pod init file --- test/test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test.ts b/test/test.ts index f24f64b..1603a23 100644 --- a/test/test.ts +++ b/test/test.ts @@ -173,7 +173,7 @@ class RNIOS extends Platform.IOS implements RNPlatform { var appDelegatePath: string = path.join(iOSProject, TestConfig.TestAppName, "AppDelegate.m"); // Create and install the Podfile return TestUtil.getProcessOutput("pod init", { cwd: iOSProject }) - .then(() => { return fs.appendFileSync(path.join(iOSProject, "Podfile"), + .then(() => { return fs.writeFileSync(path.join(iOSProject, "Podfile"), "target '" + TestConfig.TestAppName + "'\n pod 'React', :path => '../node_modules/react-native', :subspecs => [ 'Core', 'RCTImage', 'RCTNetwork', 'RCTText', 'RCTWebSocket', ]\n pod 'CodePush', :path => '../node_modules/react-native-code-push'\n"); }) // Put the IOS deployment key in the Info.plist .then(TestUtil.replaceString.bind(undefined, infoPlistPath,