react-native-datetimepicker / datetimepicker

React Native date & time picker component for iOS, Android and Windows
MIT License
2.36k stars 385 forks source link

[iOS] Build fails after updating Xcode Command Line tools. #869

Closed relez closed 2 months ago

relez commented 2 months ago

Hi there, I just updated Xcode Command Line Tools and using iOS 17.4 Simulator, and the build fails, throwing me this error:


› Compiling @react-native-community/datetimepicker Pods/RNDateTimePicker » RNDateTimePickerShadowView.m

❌  (node_modules/@react-native-community/datetimepicker/ios/RNDateTimePickerShadowView.m:8:41)

   6 | {
   7 |   if (self = [super init]) {
>  8 |     YGNodeSetMeasureFunc(self.yogaNode, RNDateTimePickerShadowViewMeasure);
     |                                         ^ incompatible function pointer types passing 'YGSize ' (aka 'struct YGSize (struct YGNode *, float, enum YGMeasureMode, float, enum YGMeasureMode)') to parameter of type 'YGMeasureFunc' (aka 'struct YGSize (*)(const struct YGNode *, float, enum YGMeasureMode, float, enum YGMeasureMode)') [-Wincompatible-function-pointer-types]
   9 |   }
  10 |   return self;
  11 | }

Any suggestion? Thanks!

JBlazej commented 2 months ago

Hi, @relez How did you resolve the issue?

relez commented 2 months ago

Yes, same issue here:

https://github.com/react-native-datetimepicker/datetimepicker/issues/866