init(xpcService:targetQueue:options:requirement:cancellationHandler:)
Creates a new session object representing a connection to the named service, and requires that the session peer has the specified requirement.
Declaration
@preconcurrency convenience init(xpcService: String, targetQueue: DispatchQueue? = nil, options: XPCSession.InitializationOptions = .none, requirement: XPCPeerRequirement, cancellationHandler: (@Sendable (XPCRichError) -> Void)? = nil) throwsDiscussion
requirement: The requirement the peer must have