@DTS Engineer, I'm still getting the issue even with the Foundation module qualifier in the front of NSXPCInterface.
The strangest thing is that I have others on my team that can build successfully with the same commit on the same version of XCode. I suspect something more environmental to my machine.
I noticed that when I Jump to Definition on NSXPCInterface, XCode sometimes points me to the Swift definition of the interface, like below:
@available(macOS 10.8, *)
open class NSXPCInterface : NSObject {
public /*not inherited*/ init(with protocol: Protocol)
unowned(unsafe) open var `protocol`: Protocol
//...
}
and other times it will point me to NSXPCConnection.h, like below:
API_AVAILABLE(macos(10.8), ios(6.0), watchos(2.0), tvos(9.0))
@interface NSXPCInterface : NSObject
// Factory method to get an NSXPCInterface instance for a given protocol. Most interfaces do not need any further configuration. Interfaces with collection classes or additional proxy objects should be configured using the methods below.
+ (NSXPCInterface *)interfaceWithProtocol:(Protocol *)protocol;
// The Objective C protocol this NSXPCInterface is based upon.
@property (assign) Protocol *protocol;
//...
@end
Also, the Autocomplete shows the Initializer with the protocol labeled argument and not with. I attempted changing to use "protocol" for the label, but that's not working either.