Returns a pointer to a function in a bundle’s executable code using the function name as the search key.


func CFBundleGetFunctionPointerForName(_ bundle: CFBundle!, _ functionName: CFString!) -> UnsafeMutableRawPointer!



The bundle to examine.


The name of the function to locate.

Return Value

A pointer to a function in a bundle’s executable code, or NULL if functionName cannot be found. Ownership follows the The Get Rule.


Calling this function will cause the bundle’s code to be loaded if necessary.

See Also

Managing Executable Code

func CFBundleGetFunctionPointersForNames(CFBundle!, CFArray!, UnsafeMutablePointer<UnsafeMutableRawPointer?>!)

Constructs a function table containing pointers to all of the functions found in a bundle’s main executable code.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software