-
-
Notifications
You must be signed in to change notification settings - Fork 415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When running in Xcode 15.3 getting Incompatible function pointer types passing 'YGSize (...)' exception #866
Comments
Same, I changed YGNodeRef to YGNodeConstRef in RNDateTimePickerShadowView.m line 44 (in function RNDateTimePickerShadowViewMeasure) and everything seems back to normal :) |
It fixed my build error issue too. Thank you. |
It 's same issue. |
The solution proposed by @sbeigel was indeed correct, but I kept getting an error at line 4 about "an expected expression". Turns out some weird whitespace character was used, I don't know if that was my fault or what... EDIT: thanks to @phicoder for the suggestion (my bad for being kinda hasty), the issue was indeed on my end; after reinstalling and rebuilding this is the working patch.
|
Same here. The workaround fixed the compilation error. Any clue when this will be released? |
Thank you so much. You save my day. |
I am having the same issue! Changing to YGNodeConstRef fixed the problem, I would love this to be fixed soon! Thanks a lot |
Please fix. |
this did work! Thank you. |
Got the same issue on Expo |
@mpho-ppm the fix works on Expo too (dev client builds) Just go to This is a hack workaround until a fix is released. If you restore modules this will be overwritten. |
@mphill The patch-package library is an excellent way of temporarily patching these kind of issues. Here's a patch file that I already prepared: In our projects we typically keep these in a I can really recommend this approach (much easier than having to fork as well). |
@bitcrumb nice! EAS build servers are still working because they are not using Xcode 15.3, but we may have to do this if they upgrade. Thanks for sharing this pearl. |
Same for me, happens when i do local dev This worked thank you
|
Can anyone confirm applying the fix above by @sbeigel breaks it on previous versions of Xcode? i.e. is this specific to 15.3? |
Seems like the patch isn't being applied. I'd recommend checking that:
|
Do we have an ETA on a fix? I use expo and I locally build the the apps and it's been failing. |
same for me, so I restarted my Mac, it worked. |
Thanks. It worked for me also. |
Hey, I have the same issue but the fix doesn't work for me... I changed the type of the node variable to the YGNodeConstRef as advised but the error keeps reappearing |
I think you need to create a patch from the package. Because otherwise '''eas build''' just pulls the current package from npm. |
Upgrading to v7.6.3 worked for me My package versions
If you receive this error when after running
Just set |
Confirm upgrading to 7.6.3 fixed it. Cheers 🍻 |
Upgraded to 7.6.4. Now it's vice versa 😅 🤡
Changing YGNodeConstRef back to YGNodeRef fixed the problem. |
Same error that @pavlo-tretiak
Any solution? |
Just upgrading to 7.7.0 worked for me.
|
Seems to be a problem of platform, because I have React Native 0.72 |
Issue still exists:
|
@react-native-community/datetimepicker: 8.0.0 works |
In my case it was the opposite I had to change YGNodeRef to YGNodeRef |
ahahaha lol, it's working really v8.0 |
I just ran into this issue as well, and after some trial and error, I can confirm 7.6.3+ is breaking RN 0.72 (and below?), while 7.6.2 still works. It can be traced back to #868, merged and released with
|
Hi all 👋 Is there any way you could reopen this issue (or create another one) in order to address this? Thanks! |
+1 |
Upgrading to version 7.6.3 solved my issue on expo.dev |
When we change This solution worked for me:
Step-1. Step-2. add a new script in "scripts": { Step-3. Go to Step-4. Run command |
This worked for me, I was using RN 0.72 downgraded datetimepicker to 7.6.2 from 7.6.4 and it worked |
I think this issue back in version "react-native": "0.72.14", Works for me to change back to |
same issue, still facing |
I am using "react-native": "0.71.7", |
whelp its broken again. I suspect Xcode 15.4 update. Using 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)') when building |
@KubilayKartega I have the same issue. It doesn't work since Xcode 15.4 update :( with "@react-native-community/datetimepicker": "^8.1.1" |
I did the opposite of this, and it resolved my issue. |
it's worked like charm! |
This worked for me I have used the latest 8.2.0 and still faced the same issue with it.
|
The opposite worked for me. I changed YGNodeConstRef to YGNodeRef. |
Any update on this, is the only solution to use patch-package? |
Bug report
I've updated to the most recent Xcode 15.3 and build started to fail with:
Any idea what can be wrong with it?
Getting the issue
The text was updated successfully, but these errors were encountered: