<!--
{
  "availability" : [
    "iOS: 9.0.0 - 27.0.0",
    "iPadOS: 9.0.0 - 27.0.0",
    "macCatalyst: 13.1.0 - 27.0.0",
    "tvOS: 9.0.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0",
    "watchOS: 2.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSBundleResourceRequest/endAccessingResources()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSBundleResourceRequest(im)endAccessingResources"
  },
  "title" : "endAccessingResources()"
}
-->

# endAccessingResources()

Informs the system that you have finished accessing the resources marked with the tags managed by the request.

```
func endAccessingResources()
```

## Discussion

Call this method as soon as you have finished using the tags managed by this request. If needed, this method will be called by the system when the resource request object is deallocated.

> Important:
> The callback from ``doc://com.apple.foundation/documentation/Foundation/NSBundleResourceRequest/beginAccessingResources(completionHandler:)`` or ``doc://com.apple.foundation/documentation/Foundation/NSBundleResourceRequest/conditionallyBeginAccessingResources(completionHandler:)`` must have completed before calling ``doc://com.apple.foundation/documentation/Foundation/NSBundleResourceRequest/endAccessingResources()``.

---

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)