Files
react-native/packages
Ben HandanyanandRiccardo Cipolleschi 4ca9d72eab Enable hermes debugger by configuration type instead of configuration name (#48174)
Summary:
Fixes an [issue](https://github.com/facebook/react-native/issues/48168) where only iOS configurations with "Debug" in the name are configured to use the hermes debugger.

## Changelog:

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->

[IOS] [FIXED] - Enable hermes debugger by configuration type instead of configuration name

Pull Request resolved: https://github.com/facebook/react-native/pull/48174

Test Plan:
Added new test scenarios that all pass:
```
ruby -Itest packages/react-native/scripts/cocoapods/__tests__/utils-test.rb
Loaded suite packages/react-native/scripts/cocoapods/__tests__/utils-test
Started
Finished in 0.336047 seconds.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
56 tests, 149 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
166.64 tests/s, 443.39 assertions/s
```

In a personal project with the following configurations:
```
project 'ReactNativeProject', {
    'Local' => :debug,
    'Development' => :release,
    'Staging' => :release,
    'Production' => :release,
  }
```
I added the following to my Podfile:
```
installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
        puts "#{config.name} is debug? #{config.type == :debug}"
    end
end
```
To confirm that my logic is correct:
```
Local is debug? true
Development is debug? false
Staging is debug? false
Production is debug? false
```

Reviewed By: robhogan

Differential Revision: D66962860

Pulled By: cipolleschi

fbshipit-source-id: 7bd920e123c9064c8a1b5d45df546ff5d2a7d8be
2025-01-08 13:50:57 +00:00
..
2024-12-09 16:30:18 +00:00
2024-12-09 16:30:18 +00:00
2024-12-09 16:30:18 +00:00
2024-12-09 16:30:18 +00:00
2024-12-09 16:30:18 +00:00
2024-12-09 16:30:18 +00:00
2024-12-09 16:30:18 +00:00
2024-12-09 16:30:18 +00:00
2024-12-09 16:30:18 +00:00
2024-12-09 16:30:18 +00:00
2024-12-09 16:30:18 +00:00
2024-12-09 16:30:18 +00:00
2024-12-09 16:30:18 +00:00
2024-12-09 16:30:18 +00:00
2024-12-09 16:30:18 +00:00
2024-12-09 16:30:18 +00:00
2024-12-09 16:30:18 +00:00
2024-12-09 16:30:18 +00:00
2024-12-09 16:30:18 +00:00
2024-12-09 16:30:18 +00:00
2024-12-09 16:30:18 +00:00
2024-12-10 00:23:44 +00:00
2024-12-09 16:30:18 +00:00
2024-12-09 16:30:18 +00:00