---
title: "CFBundleCopyResourcesDirectoryURL(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfbundlecopyresourcesdirectoryurl(_:)"
---

# CFBundleCopyResourcesDirectoryURL(_:)

Returns the location of a bundle’s Resources directory.

## Declaration

```swift
func CFBundleCopyResourcesDirectoryURL(_ bundle: CFBundle!) -> CFURL!
```

## Parameters

- `bundle`: The bundle to examine.

## Return Value

Return Value A CFURL object describing the location of bundle’s resources directory, or NULL if it could not be found. Ownership follows the The Create Rule.

## Discussion

Discussion In general, you should never need to use this function. Use CFBundleCopyResourceURL(_:_:_:_:) and similar functions instead.

## See Also

### Finding Locations in a Bundle

- [CFBundleCopyAuxiliaryExecutableURL(_:_:)](corefoundation/cfbundlecopyauxiliaryexecutableurl(_:_:).md)
- [CFBundleCopyBuiltInPlugInsURL(_:)](corefoundation/cfbundlecopybuiltinpluginsurl(_:).md)
- [CFBundleCopyExecutableURL(_:)](corefoundation/cfbundlecopyexecutableurl(_:).md)
- [CFBundleCopyPrivateFrameworksURL(_:)](corefoundation/cfbundlecopyprivateframeworksurl(_:).md)
- [CFBundleCopySharedFrameworksURL(_:)](corefoundation/cfbundlecopysharedframeworksurl(_:).md)
- [CFBundleCopySharedSupportURL(_:)](corefoundation/cfbundlecopysharedsupporturl(_:).md)
- [CFBundleCopySupportFilesDirectoryURL(_:)](corefoundation/cfbundlecopysupportfilesdirectoryurl(_:).md)
