CFBundleUnloadExecutable(_:)
Unloads the main executable for the specified bundle.
Declaration
func CFBundleUnloadExecutable(_ bundle: CFBundle!)Parameters
- bundle:
The bundle whose main executable you want to unload.
Discussion
You should typically try to avoid using this function, but instead use CFBundleGetFunctionPointerForName(_:_:) and related functions since these make management of the bundle easier (when the last reference to the CFBundle object is released, and it is finally deallocated, then the code will be unloaded if it is still loaded, and if the executable is of a type that supports unloading).