From c547fdd0d511e1c379f104c4afcdd1e65ef5c0be Mon Sep 17 00:00:00 2001 From: Lorenzo Sciandra Date: Tue, 18 Oct 2022 10:32:59 -0700 Subject: [PATCH] fix(template, ios): add marketing version to template project (#35012) Summary: Recently this PR got merged https://github.com/facebook/react-native/pull/34919 that aligned the info.plist to the current default. Problem: the variable `MARKETING_VERSION` was not set in the template, so generating a new project and testing on iOS would fail accordingly: Screenshot 2022-10-18 at 15 27 27 This PR takes care of setting the variable so that the app can build successfully. ## Changelog [iOS] [Fixed] - add MARKETING_VERSION to template project Pull Request resolved: https://github.com/facebook/react-native/pull/35012 Test Plan: Run `yarn test-e2e-local -t RNTestProject`, apps builds correctly and runs on simulator. Reviewed By: cipolleschi Differential Revision: D40472420 Pulled By: cortinico fbshipit-source-id: 18ddd57ce54186a101321583a7a8391e97ca9511 --- template/ios/HelloWorld.xcodeproj/project.pbxproj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/template/ios/HelloWorld.xcodeproj/project.pbxproj b/template/ios/HelloWorld.xcodeproj/project.pbxproj index 70234ff08ade53..2ad587963337f0 100644 --- a/template/ios/HelloWorld.xcodeproj/project.pbxproj +++ b/template/ios/HelloWorld.xcodeproj/project.pbxproj @@ -492,6 +492,7 @@ "$(inherited)", "@executable_path/Frameworks", ); + MARKETING_VERSION = 1.0; OTHER_LDFLAGS = ( "$(inherited)", "-ObjC", @@ -517,6 +518,7 @@ "$(inherited)", "@executable_path/Frameworks", ); + MARKETING_VERSION = 1.0; OTHER_LDFLAGS = ( "$(inherited)", "-ObjC",