Uh oh!
There was an error while loading. Please reload this page.
Fix ios pod post_install logic for detecting if fabric is enabled - #41284
Fix ios pod post_install logic for detecting if fabric is enabled#41284gabrieldonadel wants to merge 1 commit into
Conversation
cipolleschi
left a comment
There was a problem hiding this comment.
Perfect! Thank you @gabrieldonadel!
cipolleschi
commented
Nov 1, 2023
For another change, we should probably do the same for Hermes, as line 100 sets |
facebook-github-bot
commented
Nov 1, 2023
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
gabrieldonadel
commented
Nov 1, 2023
Here is the followup pr #41286 |
This pull request was successfully merged by @gabrieldonadel in 0f8a83e. When will my fix make it into a release? | Upcoming Releases |
…1284) Summary: There is a problem in the way that we check if Fabric is enabled inside `react_native_post_install`. https://github.com/facebook/react-native/blob/899e7cdb55197fc17a96a93af4f8bcc7519553c2/packages/react-native/scripts/react_native_pods.rb#L239 We're determining if fabric is enabled by checking if the `React-Fabric pod `is present, but since we always call `setup_fabric!(:react_native_path => prefix)` (react/react-native#39057) inside `use_react_native` the `React-Fabric` pod is always present causing the `-DRN_FABRIC_ENABLED` flag to always be added to `project.pbxproj` even if the new arch is disabled. [IOS] [FIXED] - Fix ios pod post_install logic for detecting if fabric is enabled Pull Request resolved: react/react-native#41284 Test Plan: Run `use_react_native!(fabric => false)` should not add the `-DRN_FABRIC_ENABLED` flag to `project.pbxproj` Reviewed By: fkgozali Differential Revision: D50896487 Pulled By: cipolleschi fbshipit-source-id: 78154407ce52b09fd3a317b7dc64bd4bba56363e
…41286) Summary: Follow up of #41284 (comment) We should not rely on checking if the `React-hermes` pod is present to determine if hermes is enabled ## Changelog: [IOS] [CHANGED] - Update ios pod post_install logic for detecting if hermes is enabled Pull Request resolved: #41286 Test Plan: Run `use_react_native!(hermes => false)` should not add `USE_HERMES = true;` to `project.pbxproj` Reviewed By: blakef Differential Revision: D50899654 Pulled By: cipolleschi fbshipit-source-id: a5ab5b0117c61014e77b780c50bf349da92c6342
…1284) Summary: There is a problem in the way that we check if Fabric is enabled inside `react_native_post_install`. https://github.com/facebook/react-native/blob/899e7cdb55197fc17a96a93af4f8bcc7519553c2/packages/react-native/scripts/react_native_pods.rb#L239 We're determining if fabric is enabled by checking if the `React-Fabric pod `is present, but since we always call `setup_fabric!(:react_native_path => prefix)` (#39057) inside `use_react_native` the `React-Fabric` pod is always present causing the `-DRN_FABRIC_ENABLED` flag to always be added to `project.pbxproj` even if the new arch is disabled. [IOS] [FIXED] - Fix ios pod post_install logic for detecting if fabric is enabled Pull Request resolved: #41284 Test Plan: Run `use_react_native!(fabric => false)` should not add the `-DRN_FABRIC_ENABLED` flag to `project.pbxproj` Reviewed By: fkgozali Differential Revision: D50896487 Pulled By: cipolleschi fbshipit-source-id: 78154407ce52b09fd3a317b7dc64bd4bba56363e
…41286) Summary: Follow up of #41284 (comment) We should not rely on checking if the `React-hermes` pod is present to determine if hermes is enabled ## Changelog: [IOS] [CHANGED] - Update ios pod post_install logic for detecting if hermes is enabled Pull Request resolved: #41286 Test Plan: Run `use_react_native!(hermes => false)` should not add `USE_HERMES = true;` to `project.pbxproj` Reviewed By: blakef Differential Revision: D50899654 Pulled By: cipolleschi fbshipit-source-id: a5ab5b0117c61014e77b780c50bf349da92c6342
Summary:
There is a problem in the way that we check if Fabric is enabled inside
react_native_post_install.https://github.com/facebook/react-native/blob/899e7cdb55197fc17a96a93af4f8bcc7519553c2/packages/react-native/scripts/react_native_pods.rb#L239
We're determining if fabric is enabled by checking if the
React-Fabric podis present, but since we always callsetup_fabric!(:react_native_path => prefix)(#39057) insideuse_react_nativetheReact-Fabricpod is always present causing the-DRN_FABRIC_ENABLEDflag to always be added toproject.pbxprojeven if the new arch is disabled.Changelog:
[IOS] [FIXED] - Fix ios pod post_install logic for detecting if fabric is enabled
Test Plan:
Run
use_react_native!(fabric => false)should not add the-DRN_FABRIC_ENABLEDflag toproject.pbxproj