diff --git a/packages/react-native/scripts/cocoapods/rncore.rb b/packages/react-native/scripts/cocoapods/rncore.rb index 09cd88363d7..aaa4e5d3325 100644 --- a/packages/react-native/scripts/cocoapods/rncore.rb +++ b/packages/react-native/scripts/cocoapods/rncore.rb @@ -160,6 +160,7 @@ class ReactNativeCoreUtils rncore_log(" #{Pathname.new(destinationDebug).relative_path_from(Pathname.pwd).to_s}") rncore_log(" #{Pathname.new(destinationRelease).relative_path_from(Pathname.pwd).to_s}") + return {:http => stable_tarball_url(@@react_native_version, :debug) } unless @@download_dsyms return {:http => URI::File.build(path: destinationDebug).to_s } end @@ -196,6 +197,7 @@ class ReactNativeCoreUtils rncore_log("Resolved nightly ReactNativeCore-prebuilt version:") rncore_log(" #{Pathname.new(destinationDebug).relative_path_from(Pathname.pwd).to_s}") rncore_log(" #{Pathname.new(destinationRelease).relative_path_from(Pathname.pwd).to_s}") + return {:http => nightly_tarball_url(@@react_native_version, :debug) } unless @@download_dsyms return {:http => URI::File.build(path: destinationDebug).to_s } end diff --git a/packages/react-native/scripts/cocoapods/rndependencies.rb b/packages/react-native/scripts/cocoapods/rndependencies.rb index a9018403407..2000e316cf7 100644 --- a/packages/react-native/scripts/cocoapods/rndependencies.rb +++ b/packages/react-native/scripts/cocoapods/rndependencies.rb @@ -158,10 +158,10 @@ class ReactNativeDependenciesUtils url = release_tarball_url(@@react_native_version, :debug) rndeps_log("Using tarball from URL: #{url}") - destinationDebug = download_stable_rndeps(@@react_native_path, @@react_native_version, :debug) + download_stable_rndeps(@@react_native_path, @@react_native_version, :debug) download_stable_rndeps(@@react_native_path, @@react_native_version, :release) - return {:http => URI::File.build(path: destinationDebug).to_s } + return {:http => url } end def self.release_tarball_url(version, build_type) @@ -225,11 +225,10 @@ class ReactNativeDependenciesUtils url = nightly_tarball_url(version, :debug) rndeps_log("Using tarball from URL: #{url}") - destinationDebug = download_nightly_rndeps(@@react_native_path, @@react_native_version, :debug) + download_nightly_rndeps(@@react_native_path, @@react_native_version, :debug) download_nightly_rndeps(@@react_native_path, @@react_native_version, :release) - return {:http => URI::File.build(path: destinationDebug).to_s } - return {:http => url} + return {:http => url } end def self.download_rndeps_tarball(react_native_path, tarball_url, version, configuration)