Repository navigation
Conversation
…facts Signed-off-by: izbari <73957984+izbari@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #60198. When Maven cannot be reached, the CocoaPods scripts can select a source build of React Native or Hermes. A connection failure provides no evidence that the corresponding prebuilt binary is missing. In particular, evaluating the Hermes podspec against a refused connection produced a valid Git source spec for the stable branch.
Use the same HEAD probe for React Native Core, its dependencies and Hermes. Retry transient failures and check the next configured repository if one cannot answer. Cache successful and missing responses. If no repository supplies the artifact, allow the existing source fallback when the probes confirm absence (404/410), and report an inconclusive lookup otherwise. Local tarball overrides bypass these probes.
Changelog
[IOS] [FIXED] - Prevent CocoaPods from silently selecting a source build when it cannot verify prebuilt artifact availability.
Test Plan
packages/react-native/scripts/cocoapods/__tests__individually withruby:prebuilt_artifact-test.rb,maven_mirror_flag-test.rb, andrndependencies-test.rb. All 17 tests and 37 assertions passed. Coverage includes recovery from 503, confirmed 404, alternate repository success, and mixed inconclusive/missing results.pod ipc spec hermes-engine.podspecinpackages/react-native/sdks/hermes-enginewithENTERPRISE_REPOSITORYset to a loopback port refusing connections. On unmodified main CocoaPods exited 0 and emitted a Hermes Git source spec. With this change it exited 1 and reported the Maven probe failure (curl exit 7). A minimal Podfile depending on that local pod also stopped at dependency analysis in an actualpod install, with the same diagnostic. No iOS application build was run.Codex assisted with implementation and local verification.