---
title: "objc_copyClassNamesForImage(_:_:)"
framework: Objective-C Runtime
role: symbol
role_heading: Function
platforms: [iOS 2.0+, iPadOS 2.0+, Mac Catalyst 13.1+, macOS 10.5+, tvOS 9.0+, visionOS 1.0+, watchOS 1.0+]
path: "objectivec/objc_copyclassnamesforimage(_:_:)"
---

# objc_copyClassNamesForImage(_:_:)

Returns the names of all the classes within a specified library or framework.

## Declaration

```swift
func objc_copyClassNamesForImage(_ image: UnsafePointer<CChar>, _ outCount: UnsafeMutablePointer<UInt32>?) -> UnsafeMutablePointer<UnsafePointer<CChar>>?
```

## Parameters

- `image`: The library or framework you are inquiring about.
- `outCount`: The number of class names in the returned array.

## Return Value

Return Value An array of C strings representing all of the class names within the specified library or framework.

## See Also

### Working with Libraries

- [objc_copyImageNames(_:)](objectivec/objc_copyimagenames(_:).md)
- [class_getImageName(_:)](objectivec/class_getimagename(_:).md)
