google / google/EarlGrey

Uncaught exception: +[XCAXClient_iOS sharedClient]: unrecognized selector sent to class

Open
#816 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
5.7k
Forks
737
Avg merge
1d 20h
Merged PRs (30d)
5

Description

EarlGrey run error in XCode10.2:
```
Uncaught exception: +[XCAXClient_iOS sharedClient]: unrecognized selector sent to class
```
I have found the newest code has fixed the error:
```
id XCAXClient;
if ([XCAXClientClass respondsToSelector:NSSelectorFromString(@"sharedClient")]) {
XCAXClient = [XCAXClientClass sharedClient];
} else {
XCAXClient = [[XCUIDevice sharedDevice] accessibilityInterface];
}
```
but I can't get the newest version by :
```
pod 'EarlGrey', '~> 1.15.0'
```
or
```
pod 'EarlGrey'
```
how can I get the newest version?

Contributor guide

Open the contributing guide

Research direction

Start by comparing the EarlGrey code containing the XCAXClient_iOS sharedClient check with the versions available through the shown CocoaPods declarations. Verify which released version includes the fix and whether the requested pod dependency resolves to it; done means the fixed version can be obtained through CocoaPods without the reported exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, objective-c
Domain
mobile, testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.