Skip to content

EarlGrey 2 fails to compile in Xcode 16.3 #2083

@rhysm94

Description

@rhysm94

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions