Returns an error or status code associated with the most recent function call.


func SCCopyLastError() -> CFError

Return Value

The most recent status or error code generated as the result of calling a function defined by the System Configuration framework. The code is represented by a Core Foundation CFErrorRef opaque type.


Call the CFErrorGetCode(_:) function on the returned object to get the underlying error-code integer. See Status and Error Codes for descriptions of these codes. For more on CFErrorRef objects, see CFError.

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