---
title: "objc_copyImageHeaders(_:)"
framework: Objective-C Runtime
role: symbol
role_heading: Function
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+, watchOS 27.0+]
path: "objectivec/objc_copyimageheaders(_:)"
---

# objc_copyImageHeaders(_:)

Returns the Mach headers of all the images loaded into the current process that contain Objective-C or Swift code.

## Declaration

```swift
func objc_copyImageHeaders(_ outCount: UnsafeMutablePointer<UInt32>?) -> UnsafeMutablePointer<OpaquePointer>
```

```swift
func objc_copyImageHeaders(_ outCount: UnsafeMutablePointer<UInt32>?) -> UnsafeMutablePointer<UnsafePointer<mach_header>>
```

## Parameters

- `outCount`: The number of image headers returned.

## Return Value

Return Value An array of @c mach_header pointers. The array contains @c *outCount pointers followed by a @c NULL terminator. You must free the array with
