在 xcode 12 版本以上, appium 修改错误后,运行报这个错误.
+ (id<XCTestManager_ManagerInterface>)retrieveTestRunnerProxy
{
if ([[XCTestDriver sharedTestDriver] respondsToSelector:@selector(managerProxy)]) {
return [XCTestDriver sharedTestDriver].managerProxy;
} else {
return ((XCTRunnerDaemonSession *)[FBXCTRunnerDaemonSessionClass sharedSession]).daemonProxy;
}
}
找到以上代码,修改成
+ (id<XCTestManager_ManagerInterface>)retrieveTestRunnerProxy
{
// if ([[XCTestDriver sharedTestDriver] respondsToSelector:@selector(managerProxy)]) {
// return [XCTestDriver sharedTestDriver].managerProxy;
// } else {
return ((XCTRunnerDaemonSession *)[FBXCTRunnerDaemonSessionClass sharedSession]).daemonProxy;
// }
}