From 38e5fa6a9604ab42fef442e7a51ebfe185df90bb Mon Sep 17 00:00:00 2001 From: Lorenzo Sciandra Date: Thu, 19 Jan 2023 09:55:59 +0000 Subject: [PATCH] [LOCAL] build: remove deprecated File.exists() method from Hermes podspec. (#35853) --- sdks/hermes-engine/hermes-engine.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdks/hermes-engine/hermes-engine.podspec b/sdks/hermes-engine/hermes-engine.podspec index 247bc111f385f1..b80054750b1849 100644 --- a/sdks/hermes-engine/hermes-engine.podspec +++ b/sdks/hermes-engine/hermes-engine.podspec @@ -43,7 +43,7 @@ elsif isNightly destination_path = download_nightly_hermes(react_native_path, version) # set tarball as hermes engine source[:http] = "file://#{destination_path}" -elsif File.exists?(hermestag_file) && isInCI +elsif File.exist?(hermestag_file) && isInCI Pod::UI.puts '[Hermes] Detected that you are on a React Native release branch, building Hermes from source but fetched from tag...'.yellow if Object.const_defined?("Pod::UI") hermestag = File.read(hermestag_file).strip source[:git] = git