I'm trying to include iCloud key-value storage support to my Xamarin.iOS (v4.0.30319) app in Visual Studio 2013 (Xcode 7.2.1 on Mac), but constantly getting:
error MT1019: Your application has entitlements not supported by your current provisioning profile and could not be installed on the device 'My iPhone 4'. Please check the iOS Device Log for more detailed information (error: 0xe8008016).
By the way there are no logs on device, at least xCode won't show any.
I have another app written in native objective C in Xcode, it also has iCloud support and it works ok. So I've done the same things:
- created iCloud container on developer.apple.com with name "iCloud.[my team id].[my bundle id]" (I used exact values, without macro)
- created app id for [my bundle id] on developer.apple.com with enabled iCloud for container "iCloud.[my team id].[my bundle id]"
- created development provisioning profile
- installed it in Xcode.
- selected it in Visual Studio in "iOS Bundle Signing"
- edited entitlements as written here :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.developer.ubiquity-kvstore-identifier</key>
<string>iCloud.[my team id].[my bundle id]</string>
<key>com.apple.developer.ubiquity-container-identifiers</key>
<array>
<string>iCloud.[my team id].[my bundle id]</string>
</array>
</dict>
</plist>
After that Xamarin doesn't want to install my app on device. I've changed name of container, removed com.apple.developer.ubiquity-container-identifiers from entitlements and returned it (always deleting all provisioning profile, redownloading to xcode, relaunching visual studio, cleaning solution, removing profiles on device, uninstalling existing app). Only when I remove com.apple.developer.ubiquity-kvstore-identifier and com.apple.developer.ubiquity-container-identifiers from entitlements Xamarin installs app to device. But obviously NSUbiquitousKeyValueStore does not work. What's wrong in my setup?