macacajs / macacajs/XCTestWD

麻烦帮忙看看XCTestXCAXClientProxy.m文件中的这个方法,每次调用的时候,都会异常退出

Open
#189 3 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.