Skip to content

[Hermes][iOS] Remove RCT_HERMES_V1_ENABLED from CocoaPods infrastructure#56701

Draft
cipolleschi wants to merge 1 commit intocipolleschi/remove-legacy-hermes-phase2from
cipolleschi/remove-legacy-hermes-phase3
Draft

[Hermes][iOS] Remove RCT_HERMES_V1_ENABLED from CocoaPods infrastructure#56701
cipolleschi wants to merge 1 commit intocipolleschi/remove-legacy-hermes-phase2from
cipolleschi/remove-legacy-hermes-phase3

Conversation

@cipolleschi
Copy link
Copy Markdown
Contributor

@cipolleschi cipolleschi commented May 6, 2026

Summary

  • Remove RCT_HERMES_V1_ENABLED environment variable from react_native_pods.rb
  • Simplify jsengine.rb to always use .hermesversion tag file
  • Remove conditional HERMES_V1_ENABLED=1 preprocessor definition from utils.rb
  • Simplify hermes-engine.podspec: always read HERMES_VERSION_NAME, use V1 source files, remove legacy inspector subspecs
  • Simplify hermes-utils.rb: remove hermes_v1_enabled() function, always use 250829098.0.0-stable branch, always use .hermesversion tag file

Changelog:

[iOS][Removed] - Remove the RCT_HERMES_V1_ENABLED from Cocoapods

Test plan

  • iOS: bundle exec pod install — success
  • iOS: xcodebuild rn-tester on iPhone 16 Pro simulator — BUILD SUCCEEDED

Remove the RCT_HERMES_V1_ENABLED environment variable and all conditional
logic in the CocoaPods/Ruby files. The podspec now always reads
HERMES_VERSION_NAME, uses V1 source files, and omits legacy inspector
subspecs. The HERMES_V1_ENABLED=1 preprocessor define is no longer set
since no C++ code checks for it.
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 6, 2026
@facebook-github-tools facebook-github-tools Bot added p: Facebook Partner: Facebook Partner labels May 6, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

Caution

Invalid Base Branch

The base branch for this PR is cipolleschi/remove-legacy-hermes-phase2, which is not main or a -stable branch.
Are you sure you want to target this branch?

@cipolleschi cipolleschi changed the title Remove RCT_HERMES_V1_ENABLED from CocoaPods infrastructure [Hermes][iOS] Remove RCT_HERMES_V1_ENABLED from CocoaPods infrastructure May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant