EarlGrey
EarlGrey copied to clipboard
Crash while running UI Tests (M1)
The test crashes immediately while running on an M1 machine. EarlGrey setup is manual.
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
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 it is included manually
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