-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS: don't override EXCLUDED_ARCHS when installing Hermes #39060
Conversation
Base commit: 10a076f |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @jpdriver! Thank you so much for this update. I think that is very good.
However, there are a couple of tests that are failing and need to be updated:
- https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/cocoapods/__tests__/utils-test.rb#L223
- https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/cocoapods/__tests__/utils-test.rb#L242
Can you take care of it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing job, thank you so much for adding some tests on top of these changes.
I left some suggestions to improve maintainability and readibility.
@cipolleschi changed as requested 🙇🏻♂️ note that with the early returns in place these changes mean we will not set existing behaviour is we align all projects to use a blank string. (see changes to tests for more detail)
so not sure if this now constitutes a "breaking" change or not? 😅 |
I think it is better this way, honestly. |
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@cipolleschi merged this pull request in f2447e6. |
Summary:
EXCLUDED_ARCHS
, these settings are overwritten by thereact_native_post_install
step as part of the Cocoapods installEXCLUDED_ARCHS
when using HermesExisting Behaviour
react_native_post_install
step isexclude_i386_architecture_while_using_hermes
🐛 However 🐛
EXCLUDED_ARCHS
set, the existing value will be overwritten either to"i386"
or a blank stringChanged Behaviour
"i386"
to existing string if set, or just sets the value to"i386"
if there is no existing valueChangelog:
[IOS] [FIXED] don't override
EXCLUDED_ARCHS
when installing HermesTest Plan: