Step 6: Enable iCloud capabilities

  1. In Xcode, select your project in the project navigator.

  2. Choose the target from the Project/Targets pop-up menu or in the Targets section of the project and targets sidebar.

  3. Click Capabilities at the top of the project editor.

  4. Enable iCloud, then select iCloud Documents to allow transferring data to and from iCloud.