<!--
{
  "availability" : [
    "macOS: 10.0.0 - 10.15.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFBundleOpenBundleResourceMap(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@F@CFBundleOpenBundleResourceMap"
  },
  "title" : "CFBundleOpenBundleResourceMap(_:)"
}
-->

# CFBundleOpenBundleResourceMap(_:)

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

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

## Parameters

`bundle`

The bundle whose resource map you want to open.

## Return Value

A distinct reference number for the resource map.

## 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(_:_:)`](/documentation/CoreFoundation/CFBundleCloseBundleResourceMap(_:_:)) to close a resource map.

---

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)