---
title: "CFBundleOpenBundleResourceMap(_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfbundleopenbundleresourcemap(_:)"
---

# CFBundleOpenBundleResourceMap(_:)

Opens the non-localized and localized resource files (if any) for a bundle in a single resource map.

## Declaration

```swift
func CFBundleOpenBundleResourceMap(_ bundle: CFBundle!) -> CFBundleRefNum
```

## Parameters

- `bundle`: The bundle whose resource map you want to open.

## Return Value

Return Value A distinct reference number for the resource map.

## Discussion

Discussion Creates and makes current a single read-only resource map containing the non-localized and localized resource files. If this function is called multiple times, it opens the files multiple times and returns distinct reference numbers for each. Use CFBundleCloseBundleResourceMap(_:_:) to close a resource map.

## See Also

### Locating Bundle Resources

- [CFBundleCloseBundleResourceMap(_:_:)](corefoundation/cfbundleclosebundleresourcemap(_:_:).md)
- [CFBundleCopyResourceURL(_:_:_:_:)](corefoundation/cfbundlecopyresourceurl(_:_:_:_:).md)
- [CFBundleCopyResourceURLInDirectory(_:_:_:_:)](corefoundation/cfbundlecopyresourceurlindirectory(_:_:_:_:).md)
- [CFBundleCopyResourceURLsOfType(_:_:_:)](corefoundation/cfbundlecopyresourceurlsoftype(_:_:_:).md)
- [CFBundleCopyResourceURLsOfTypeInDirectory(_:_:_:)](corefoundation/cfbundlecopyresourceurlsoftypeindirectory(_:_:_:).md)
- [CFBundleCopyResourceURLForLocalization(_:_:_:_:_:)](corefoundation/cfbundlecopyresourceurlforlocalization(_:_:_:_:_:).md)
- [CFBundleCopyResourceURLsOfTypeForLocalization(_:_:_:_:)](corefoundation/cfbundlecopyresourceurlsoftypeforlocalization(_:_:_:_:).md)
- [CFBundleOpenBundleResourceFiles(_:_:_:)](corefoundation/cfbundleopenbundleresourcefiles(_:_:_:).md)
