EarlGrey icon indicating copy to clipboard operation
EarlGrey copied to clipboard

Crash while running UI Tests (M1)

Open mohwaili opened this issue 3 years ago • 5 comments

The test crashes immediately while running on an M1 machine. EarlGrey setup is manual.

Screenshot 2021-05-18 at 10 52 20 Screenshot 2021-05-18 at 10 52 02

mohwaili avatar May 18 '21 08:05 mohwaili

Does this crash repro with the EarlGrey Functional Tests as well? As in - can you try opening FunctionalTests.xcodeproj and running some of the tests?

tirodkar avatar May 18 '21 09:05 tirodkar

@tirodkar Screenshot 2021-05-18 at 12 43 26

mohwaili avatar May 18 '21 10:05 mohwaili

Do you include eDistantObject through Cocoapods, or manually? From the very beginning error message, it looks like this file is not included into the bundle you trying to compile: https://github.com/google/eDistantObject/blob/master/Service/Sources/NSObject%2BEDOBlockedType.m

AlbertWang0116 avatar May 19 '21 00:05 AlbertWang0116

@AlbertWang0116 it is included manually

mohwaili avatar May 19 '21 06:05 mohwaili

I'm getting this exact same issue compiling and running on an M1.

  • Manually incorporated EarlGrey2 following setup instructions
  • Using Swift -- added EarlGrey.swift wrapper and BridgingHeader
  • Crashes accessing EarlGrey.selectElement(with:) due to:
    • +[UIView edo_disallowRemoteInvocation]: unrecognized selector sent to class ...
  • Not currently using eDistantObject -- though it seems there may now be a dependency on it
  • Tried importing "GREYTestApplicationDistantObject.h" in bridging header but that doesn't resolve it
  • Tried linking against eDistantObject lib -- but that doesn't work/not allowed as it's already linked in CommonLib

bladebunny avatar May 15 '22 00:05 bladebunny