From 81b87e458ad0f4fd89d05513596d84e51aa6c128 Mon Sep 17 00:00:00 2001 From: Kacper Wiszczuk Date: Wed, 3 Apr 2019 09:49:38 -0700 Subject: [PATCH] Rename ios project name with new template (#24292) Summary: With new `init` implementation we replace all occurrences of the project name (`HelloWorld`) inside `ios` and `android` directories. For some reason, a product name field in `ios` was named wrongly. This shouldn't impact initialization using `global-cli` [iOS] [Fixed] - Change productName in iOS in new init. Pull Request resolved: https://github.com/facebook/react-native/pull/24292 Differential Revision: D14749249 Pulled By: cpojer fbshipit-source-id: aaf4294ab23180770aac3075789d3ffb4d5a4f3f --- package.json | 5 ++++- template/ios/HelloWorld.xcodeproj/project.pbxproj | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1f11b8df6b..b4cd40f9ec 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,10 @@ "third-party-podspecs", "template", "local-cli", - "template.config.js" + "template.config.js", + "!template/node_modules", + "!template/yarn.lock", + "!template/package-lock.json" ], "scripts": { "start": "react-native start --reactNativePath .", diff --git a/template/ios/HelloWorld.xcodeproj/project.pbxproj b/template/ios/HelloWorld.xcodeproj/project.pbxproj index cf38c885dc..7d7f932072 100644 --- a/template/ios/HelloWorld.xcodeproj/project.pbxproj +++ b/template/ios/HelloWorld.xcodeproj/project.pbxproj @@ -193,7 +193,7 @@ dependencies = ( ); name = HelloWorld; - productName = "Hello World"; + productName = "HelloWorld"; productReference = 13B07F961A680F5B00A75B9A /* HelloWorld.app */; productType = "com.apple.product-type.application"; };