NSHost *h = [NSHost hostWithName:name];
Im getting two errors from this line of code
ARC Issue: Receiver NSHost for class message is a forward declaration.
ARC Issue: No known class message for selector hostWithName:
围绕这一点,我发现,前述声明错误通常是因为没有列入某些框架。 然而,这一局面是令人厌恶的,因为国家安全局是基金会框架的一部分,由我的头盔进口。 是的,我的执行进口了我的头盔。
An opt+click on NSHost says that NSHost is declared in NSStream.h, not NSHost.h. The NSStream header file only declares @class NSHost
.
Product => Clean doesn t solve anything either. I m pretty confused as to what the issue is here :(
EDIT: I think the problem is that NSHost is not available for iOS :-/