Repository: react-native
Issue: castValue error
Labels: Needs: Repro,Needs: Attention,Type: Unsupported Version,Needs: Version Info

### Description

ios/Pods/Headers/Public/React-Fabric/react/renderer/core/RawValue.h:100:12: error: no matching function for call to 'castValue' #

### Steps to reproduce

On XCode 16.2, the rn version is 0.72 Debug can run on a real machine. Release will report an error

### React Native Version

0.72

### Affected Platforms

Other (please specify)

### Output of `npx react-native info`

```text
1.4 GHz 四核Intel Core i5  xcode 16.2
```


### Stacktrace or Logs

```text
Volumes/MobileDisk/dahan/project/jim-oa-harmony/PlatformProject/ios/Pods/Headers/Public/React-Fabric/react/renderer/core/RawValue.h:100:12: error: no matching function for call to 'castValue'
100 |     return castValue(dynamic_, (T *)nullptr);
|            ^~~~~~~~~
In file included from /Volumes/MobileDisk/dahan/project/jim-oa-harmony/PlatformProject/ios/build/generated/ios/react/renderer/components/safeareacontext/ShadowNodes.cpp:11:
In file included from /Volumes/MobileDisk/dahan/project/jim-oa-harmony/PlatformProject/ios/Pods/Headers/Private/React-Codegen/react/renderer/components/safeareacontext/ShadowNodes.h:14:
/Volumes/MobileDisk/dahan/project/jim-oa-harmony/PlatformProject/ios/Pods/Headers/Private/React-Codegen/react/renderer/components/safeareacontext/Props.h:42:57:  note: in instantiation of function template specialization 'facebook::react::RawValue::operator unordered_map<std::unordered_map<std::string, facebook::react::RawValue>>' requested here
42 |   auto map = (std::unordered_map<std::string, RawValue>)value;
|                                                         ^
In file included from /Volumes/MobileDisk/dahan/project/jim-oa-harmony/PlatformProject/ios/build/generated/ios/react/renderer/components/safeareacontext/ShadowNodes.cpp:11:
In file included from /Volumes/MobileDisk/dahan/project/jim-oa-harmony/PlatformProject/ios/Pods/Headers/Private/React-Codegen/react/renderer/components/safeareacontext/ShadowNodes.h:14:
In file included from /Volumes/MobileDisk/dahan/project/jim-oa-harmony/PlatformProject/ios/Pods/Headers/Private/React-Codegen/react/renderer/components/safeareacontext/Props.h:12:
In file included from /Volumes/MobileDisk/dahan/project/jim-oa-harmony/PlatformProject/ios/Pods/Headers/Public/React-Fabric/react/renderer/components/view/ViewProps.h:10:
In file included from /Volumes/MobileDisk/dahan/project/jim-oa-harmony/PlatformProject/ios/Pods/Headers/Public/React-Fabric/react/renderer/components/view/AccessibilityProps.h:11:
In file included from /Volumes/MobileDisk/dahan/project/jim-oa-harmony/PlatformProject/ios/Pods/Headers/Public/React-Fabric/react/renderer/core/Props.h:14:
In file included from /Volumes/MobileDisk/dahan/project/jim-oa-harmony/PlatformProject/ios/Pods/Headers/Public/React-Fabric/react/renderer/core/RawProps.h:21:
/Volumes/MobileDisk/dahan/project/jim-oa-harmony/PlatformProject/ios/Pods/Headers/Public/React-Fabric/react/renderer/core/RawValue.h:209:19:  note: candidate function not viable: no known conversion from 'std::unordered_map<std::string, facebook::react::RawValue> *' to 'RawValue *' for 2nd argument
209 |   static RawValue castValue(
|                   ^
210 |       const folly::dynamic &dynamic,
211 |       RawValue *type) noexcept {
|       ~~~~~~~~~~~~~~
/Volumes/MobileDisk/dahan/project/jim-oa-harmony/PlatformProject/ios/Pods/Headers/Public/React-Fabric/react/renderer/core/RawValue.h:215:15:  note: candidate function not viable: no known conversion from 'std::unordered_map<std::string, facebook::react::RawValue> *' to 'bool *' for 2nd argument
215 |   static bool castValue(const folly::dynamic &dynamic, bool *type) {
|               ^                                        ~~~~~~~~~~
/Volumes/MobileDisk/dahan/project/jim-oa-harmony/PlatformProject/ios/Pods/Headers/Public/React-Fabric/react/renderer/core/RawValue.h:219:14:  note: candidate function not viable: no known conversion from 'std::unordered_map<std::string, facebook::react::RawValue> *' to 'int *' for 2nd argument
219 |   static int castValue(const folly::dynamic &dynamic, int *type) {
|              ^                                        ~~~~~~~~~
/Volumes/MobileDisk/dahan/project/jim-oa-harmony/PlatformProject/ios/Pods/Headers/Public/React-Fabric/react/renderer/core/RawValue.h:223:18:  note: candidate function not viable: no known conversion from 'std::unordered_map<std::string, facebook::react::RawValue> *' to 'int64_t *' (aka 'long long *') for 2nd argument
223 |   static int64_t castValue(const folly::dynamic &dynamic, int64_t *type) {
|                  ^                                        ~~~~~~~~~~~~~
/Volumes/MobileDisk/dahan/project/jim-oa-harmony/PlatformProject/ios/Pods/Headers/Public/React-Fabric/react/renderer/core/RawValue.h:227:16:  note: candidate function not viable: no known conversion from 'std::unordered_map<std::string, facebook::react::RawValue> *' to 'float *' for 2nd argument
227 |   static float castValue(const folly::dynamic &dynamic, float *type) {
|                ^                                        ~~~~~~~~~~~
/Volumes/MobileDisk/dahan/project/jim-oa-harmony/PlatformProject/ios/Pods/Headers/Public/React-Fabric/react/renderer/core/RawValue.h:231:17:  note: candidate function not viable: no known conversion from 'std::unordered_map<std::string, facebook::react::RawValue> *' to 'double *' for 2nd argument
231 |   static double castValue(const folly::dynamic &dynamic, double *type) {
|                 ^                                        ~~~~~~~~~~~~
/Volumes/MobileDisk/dahan/project/jim-oa-harmony/PlatformProject/ios/Pods/Headers/Public/React-Fabric/react/renderer/core/RawValue.h:235:22:  note: candidate function not viable: no known conversion from 'std::unordered_map<std::string, facebook::react::RawValue> *' to 'std::string *' (aka 'basic_string<char> *') for 2nd argument
235 |   static std::string castValue(
|                      ^
236 |       const folly::dynamic &dynamic,
237 |       std::string *type) {
|       ~~~~~~~~~~~~~~~~~
/Volumes/MobileDisk/dahan/project/jim-oa-harmony/PlatformProject/ios/Pods/Headers/Public/React-Fabric/react/renderer/core/RawValue.h:242:25:  note: candidate template ignored: could not match 'vector' against 'unordered_map'
242 |   static std::vector<T> castValue(
|                         ^
/Volumes/MobileDisk/dahan/project/jim-oa-harmony/PlatformProject/ios/Pods/Headers/Public/React-Fabric/react/renderer/core/RawValue.h:255:38:  note: candidate template ignored: could not match 'vector' against 'unordered_map'
255 |   static std::vector<std::vector<T>> castValue(
|                                      ^
/Volumes/MobileDisk/dahan/project/jim-oa-harmony/PlatformProject/ios/Pods/Headers/Public/React-Fabric/react/renderer/core/RawValue.h:268:38:  note: candidate template ignored: could not match 'F14FastMap' against 'unordered_map'
```


### Reproducer

none

### Screenshots and Videos

none