Instance Method


Executes a save request and returns success or failure.


func execute(_ saveRequest: CNSaveRequest) throws



The save request to execute.


Error information, if an error occurred.

Return Value

true if the save request executes successfully; otherwise, false.


It is recommended that you do not access objects in the save request from other threads when it is in the process of being executed, because it may modify the contacts in the process. A save request only applies the changes to the objects. If there are overlapping changes with multiple or concurrent CNSaveRequest then the last saved change wins.

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