Skip to content

EarlGrey 2 fails to compile in Xcode 16.3 #2083

Open
@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!

Activity

Ro-M

Ro-M commented on Apr 9, 2025

@Ro-M

Can confirm that we are running into the same problem

salama-x

salama-x commented on Apr 9, 2025

@salama-x

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. 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @rhysm94@Ro-M@salama-x

        Issue actions

          EarlGrey 2 fails to compile in Xcode 16.3 · Issue #2083 · google/EarlGrey