New Lister application error "The common application group container is unavailable. Check your permissions and preparation profiles for this purpose ..."

I did everything in Reading Me.

Even after I press the game, the simulator starts, and then displays a message:

Line Error 175 :

let toURL = ListUtilities.localDocumentsDirectory.URLByAppendingPathComponent(url.lastPathComponent) 

I have no idea what to do.

+5
source share
3 answers

You need to change LISTER_BUNDLE_PREFIX to your company identifier, for example, "com.yourcompany.com", and ultimately fix the error in the "Application group" and "iCloud" options. The first step must be completed before steps 2 and 3.

  • First change LIST_BUNDLE_PREFIX in the project setup. This option is on the Build Settings tab of your project (not the goal)! enter image description here

  • Fix App Groupe enter image description here

  • Fix iCloud setting enter image description here

+12
source

Make sure that you modify all instances of com.example.apple-samplecode in the sample code appropriate for your application. This will not result in an error.

+3
source

If the above does not work for you, you may need to update Xcode's knowledge of your rights by clicking on the small circle with the arrow button. And one more thing ... Make sure you have the CloudKit platform installed and the CloudKit button is installed in the iCloud capabilities panel.

0
source

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


All Articles