Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode 15.3 IOS build error : Incompatible function pointer types for YGMeasureFunc

I'm encountering an error while trying to build my React Native iOS app. The error message I'm receiving is:

Incompatible function pointer types passing 'YGSize (YGNodeConstRef, float, YGMeasureMode, float, YGMeasureMode)' (aka 'struct YGSize (const struct YGNode , float, enum YGMeasureMode, float, enum YGMeasureMode)') to parameter of type 'YGMeasureFunc' (aka 'struct YGSize ()(struct YGNode *, float, enum YGMeasureMode, float, enum YGMeasureMode)')

enter image description here

I'm not entirely sure what's causing this error or how to resolve it. From what I understand, it seems to be related to incompatible function pointer types for YGMeasureFunc.

I've tried researching this issue, but I couldn't find a clear solution. Has anyone encountered a similar problem before, and if so, how did you resolve it?

like image 866
Waseem Kurne Avatar asked May 06 '26 11:05

Waseem Kurne


1 Answers

Change YGNodeConstRef to YGNodeRef in RNDateTimePickerShadowView.m line 44 (in function RNDateTimePickerShadowViewMeasure) and everything seems back to normal) enter image description here

like image 120
Waseem Kurne Avatar answered May 08 '26 02:05

Waseem Kurne



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!