Cocoa - NSNetserviceErrorCode = -72003

Hiyee ...现在我在尝试连接到域时出现此错误“NSNetServicesErrorCode = -72003; NSNetServicesErrorDomain = 10;”。Cocoa - NSNetserviceErrorCode = -72003

我的连接代码:

-(IBAction)connect:(id)sender { 

NSNetService *remoteService = servicesController.selectedObjects.lastObject;

remoteService.delegate = self;

[remoteService resolveWithTimeout:30];

}

错误代码:

-(void)netService:(NSNetService *)service didNotResolve:(NSDictionary *)errorDict { 

NSLog(@"Could not resolve: %@", errorDict);

}


Thankz

回答:

这是documented in the documentation for the underlying CFNetwork library。 (如果你看一点点的页面中,你会看到这个名字有你在错误的字典中找到的值。)

回答:

kCFNetServiceErrorInProgress = -72003L

从https://developer.apple.com/documentation/cfnetwork/cfnetworkerrors/kcfnetserviceerrorinprogress

以上是 Cocoa - NSNetserviceErrorCode = -72003 的全部内容, 来源链接: utcz.com/qa/264632.html

回到顶部