CKShare works only outside App Store released Application

Hi everyone, I have an application that allows to share Core Data records through CKShare. If I compile the app in debug or release mode on my devices with Xcode the Sharing functionality work like a charm, but if I download the application from App Store doesn't work, It seems that can't generate the link for sharing. Does anyone have any idea why? Thanks

I think the problem is due to the container schema that's not deployed to the production environment. Strangely everything works except the sharing functionality. But now the question is: if I deploy to the production environment the users will lose their data?

CKShare works only outside App Store released Application
 
 
Q