2 Replies
      Latest reply on Oct 10, 2019 9:42 PM by PBK
      bernardojn Level 1 Level 1 (0 points)

        My app was working fine with Cloud Kit on the simulator but after I distributed it and sent it to the App Store it stopped working. When the users download the app they can not even log in. It is like the entities created on the Cloud Kit dashboard do not even exist. I think this is a problem with compatibility with iOS 13, does anyone know how to solve it?

        • Re: Cloud Kit not working after distributing app
          digitalglen Level 1 Level 1 (20 points)

          It sounds like you didn't replicate your schema to production.

          • Re: Cloud Kit not working after distributing app
            PBK Level 7 Level 7 (3,265 points)

            When you run from Xcode the app choses to use the development environment or the production environment based on the value in the info.plist of:

                 com.apple.developer.icloud-container-environment

             

            Once your app is approved it will always use 'production'.

             

            You also need to deploy to development -

                0) remove unwanted record fields and select the specific indexes that you actually want to sort and query

                 1) click on the blue cube in the top left

                 2) select the database

                  3) open the 'settings' type icon next to "development"

                  4) click 'deploy to production'