icloud capability not working?

Hey all,

This is my first app with Swift, and first app using CloudKit / iCloud - although I have launched other iOS app successfully.

When I created the app, I selected "none" for storage

my bundle identifier looks like this: io.mysite.appname

I have the iCloud capability added, with CloudKit checked, and the container also checked that looks like this: iCloud.io.mysite.appname

Push Notificaitons capability is also added, but there is no configuration.

I have tried automatically managed signing, as well as a manually created provisioning profile..

Every time I build the app onto my device - when I check it out in settings, icloud is not listed. When I go through iCloud into icloud drive, the app is also not listed.

I have cleaned the build many times, deleted and reinstalled the app on my phone many times. I am definitely logged into iCloud etc.

Obviously I have spent plenty of times trying to debug with various LLMs, but we all seem to be at a loss for what I'm missing or doing wrong.

Would love any tips or pointers I may be missing, thank you!

Answered by darkpaw in 848828022

When you created the app you selected "None" for storage, and now you want to add storage. The easiest way to do this is to create a completely new project and select the correct storage option, and see what that new project contains that your existing project doesn't.

You should be able to figure out what keys need adding to a plist, or what code needs to exist in which files, etc.

I am not suggesting you move your code from your current project into the new one; that would cause you far more problems than you need. Just compare what you have already and what the new project has, and make them the same.

(The last thing you should attempt is to use an LLM or "AI" - you will spend far longer trying to give it the right context.)

Accepted Answer

When you created the app you selected "None" for storage, and now you want to add storage. The easiest way to do this is to create a completely new project and select the correct storage option, and see what that new project contains that your existing project doesn't.

You should be able to figure out what keys need adding to a plist, or what code needs to exist in which files, etc.

I am not suggesting you move your code from your current project into the new one; that would cause you far more problems than you need. Just compare what you have already and what the new project has, and make them the same.

(The last thing you should attempt is to use an LLM or "AI" - you will spend far longer trying to give it the right context.)

Thanks Darkpaw, you were right and using the LLM bit me after it specifically instructed me to select "None"

icloud capability not working?
 
 
Q