Uncaught exception: +[XCAXClient_iOS sharedClient]: unrecognized selector sent to class
- 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
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