Open
Description
When trying to build a project using EarlGrey 2.2.2 in Xcode 16.3, I now get the error:
Cast from 'id Nullable ()(id Nullable strong, Ivar **Nonnull)' (aka 'id **Nullable ()(**strong id Nullable, struct objcivar * Nonnull)') to 'UITouchFlagsGetVariableFunction' (aka 'UITouchFlags ()(*_strong id, struct objc_ivar *)') converts to incompatible function type
on line 443 in SetTouchFlagPropertyInUITouch
in the file GREYTouchInjector.m
The UITouchFlagsSetVariableFunction
line (450) also causes the same sort of problem:
Cast from 'void (*)(id _Nullable __strong, Ivar _Nonnull, id _Nullable __strong)' (aka 'void (*)(__strong id _Nullable, struct objc_ivar * _Nonnull, __strong id _Nullable)') to 'UITouchSetVariableFunction' (aka 'void (*)(__strong id, struct objc_ivar *, UITouchFlags)') converts to incompatible function type
This is preventing me from being able to update the project to use Xcode 16.3.
Is there a safe workaround I can use for this? Thanks!
Activity
Ro-M commentedon Apr 9, 2025
Can confirm that we are running into the same problem
salama-x commentedon Apr 9, 2025
We are also facing this compilation issue with Xcode 16.3.
One interesting note though, the EarlGrey project complies and runs normally on macOS 15.4, but fails on any prior macOS versions. 🤔