<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFBundleCopyInfoDictionaryForURL(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@F@CFBundleCopyInfoDictionaryForURL"
  },
  "title" : "CFBundleCopyInfoDictionaryForURL(_:)"
}
-->

# CFBundleCopyInfoDictionaryForURL(_:)

Returns the information dictionary for a given URL location.

```
func CFBundleCopyInfoDictionaryForURL(_ url: CFURL!) -> CFDictionary!
```

## Parameters

`url`

A CFURL object describing the location of a file.

## Return Value

A CFDictionary object containing `url`’s information dictionary. Ownership follows the [The Create Rule](https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFMemoryMgmt/Concepts/Ownership.html#//apple_ref/doc/uid/20001148-103029).

## Discussion

For a directory URL, this is equivalent to [`CFBundleCopyInfoDictionaryInDirectory(_:)`](/documentation/CoreFoundation/CFBundleCopyInfoDictionaryInDirectory(_:)). For a plain file URL representing an unbundled application, this function will attempt to read an information dictionary either from the `(__TEXT, __info_plist)` section of the file (for a Mach-O file) or from a `plst` resource.

---

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)