<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.2.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NetServiceDelegate/netServiceWillResolve(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(pl)NSNetServiceDelegate(im)netServiceWillResolve:"
  },
  "title" : "netServiceWillResolve(_:)"
}
-->

# netServiceWillResolve(_:)

Notifies the delegate that the network is ready to resolve the service.

```
optional func netServiceWillResolve(_ sender: NetService)
```

## Parameters

`sender`

The service that the network is ready to resolve.

## Discussion

Resolution of the service proceeds asynchronously and may still generate a call to the delegate’s [`netService(_:didNotResolve:)`](/documentation/Foundation/NetServiceDelegate/netService(_:didNotResolve:)) method if an error occurs.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)