麻烦帮忙看看XCTestXCAXClientProxy.m文件中的这个方法,每次调用的时候,都会异常退出
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 236
- Forks
- 62
- PR merge metrics
- No merged PRs in 30d
Description
(NSDictionary *)attributesForElement:(id )element
attributes:(NSArray *)attributes
{
if ([XCTestAXClient respondsToSelector:@selector(attributesForElement:attributes:error:)]) {
NSError *error = nil;
//执行到此处就异常退出
NSDictionary* result = [XCTestAXClient attributesForElement:element
attributes:attributes
error:&error];
return result;
}
return [XCTestAXClient attributesForElement:element attributes:attributes];
}
使用的手机是iphone 11,系统版本是14.2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with XCTestXCAXClientProxy.m and the attributesForElement:attributes: method. Reproduce the crash on an iPhone 11 running iOS 14.2 and inspect the resulting crash log, focusing on the XCTestAXClient call and its error-handling path. Done means the method no longer exits abnormally for the reported device and OS.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, objective-c
- Domain
- mobile, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100