Provision: Install Mac application with iCloud for testing

I am working on a Mac application that works with the iCloud KVS and CloudKit container of my iOS application, which is already ready. Everything works fine when I launch the application from Xcode directly. However, I need to Archive> Export and move it to the /Applications folder, because this is how the system raises the Safari Extension Companion .

But when I try to run the exported application, it immediately crashes and the following error is displayed in the console:

/ Users / rinat / Desktop / Screen Shot 2016-03-21 at 5.32.58 PM.png

When exporting the application, I tried to select the application signed with the development (as required here in the CloudKit docs ) and the developer ID (as required in the SO response linked above), also between the iCloud development / production modes. I tried to recreate the certificates and configuration profiles, making sure that iCloud is enabled for my application ID (and the iOS container is selected).

When I do the export, there are several folders called "A", and I donโ€™t remember them before turning on iCloud for my project:

enter image description here

What am I missing here? Thanks!

+5
source share

Source: https://habr.com/ru/post/1245492/


All Articles