Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
water-cooling opened this issue Jan 13, 2025 · 0 comments

Comments

@water-cooling
Copy link

On XCode 16.2, the rn version is 0.72 Debug can run on a real machine. Release will report an error
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 *') 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 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> 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'

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant