I have configured the iCloud storage in my Xamarin.iOS app, it works properly on simulator but, on physical device, it throws the following exception when accessing the database using the following code.
CKContainer.DefaultContainer.PrivateCloudDatabase;
Objective-C exception thrown. Name: CKException Reason: The application is missing required entitlement com.apple.developer.icloud-services Native stack trace: 0 CoreFoundation 0x00000001a921ead0
I have tried the following changes before posting here.
- Set different HTTPClient implementation from project options.
- Set NSAllowsArbitraryLoads to true from info.plist.
- Tried both debug and release builds.
- Tried with both development and distribution profile.
- Reset the device and enable/disable automatic date time.