From 3367b6a895af684f70b345837ee7bcf341493e8c Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Mon, 23 Jan 2023 07:21:01 -0800 Subject: [PATCH] Align USE_FRAMEWORKS usage between RNTester and the Template (#35790) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/35790 This diff apply to RNTester the same logic we have in the template to control the `use_framework!` setting This is a preliminary change to solve the `use_frameworks!` problems in the New Architecture for both the Template and RNTester. ## Changelog: [iOS][Changed] - Align RNTester usage of the USE_FRAMEWORKS flag to the template Reviewed By: cortinico, dmytrorykun Differential Revision: D42387701 fbshipit-source-id: 28baf5a65b727269d55382de286a17de30e8895b --- packages/rn-tester/Podfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/rn-tester/Podfile b/packages/rn-tester/Podfile index 36b03d00d2cbaf..f79da133b67c5e 100644 --- a/packages/rn-tester/Podfile +++ b/packages/rn-tester/Podfile @@ -5,14 +5,15 @@ platform :ios, min_ios_version_supported prepare_react_native_project! -USE_FRAMEWORKS = ENV['USE_FRAMEWORKS'] == '1' IN_CI = ENV['CI'] == 'true' @prefix_path = "../.." +linkage = ENV['USE_FRAMEWORKS'] +USE_FRAMEWORKS = linkage != nil if USE_FRAMEWORKS - puts "Installing pods with use_frameworks!" - use_frameworks! + Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green + use_frameworks! :linkage => linkage.to_sym end def pods(target_name, options = {}, use_flipper: !IN_CI && !USE_FRAMEWORKS)