After moving to xcode 11(from 10) i got this error when try to call CloudKit fetchUserRecordID. I have all the same app settings that i have previously when i use xcode 10(i mean the same .entitlements file, have icloud with container enabled in capabilities and for identifier in dev account). Also this file is set in Build Settings Code Signing Entitlements. Everything was fine with Xcode 10, method worked and return right value.
Found out, that it works on real device, error is only on simulator with iOS 13.3. And also it worked on this simulator before i upgraded react-native from 0.59.10 to 0.61.5 - but it's weird, because this code look like not related to react-native, i use react-native-user-identity package(the same versions as it was with old react-native), but i also try to use cloudkit in self-written obj-c bridge module and got the same error.
[CK] Invalid value of "(null)" for entitlement "application-identifier" or "com.apple.developer.associated-application-identifier" on process "Wordgame". We expect TEAMID.BUNDLEID, and insist that TEAMID is exactly 10 characters long, consisting of [0-9][A-Z]. This is a permanent issue, and access to CloudKit will be denied until this is resolved
.entitlements file
<?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>aps-environment</key>
<string>development</string>
<key>com.apple.developer.applesignin</key>
<array>
<string>Default</string>
</array>
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:wordsjam.page.link</string>
</array>
<key>com.apple.developer.icloud-container-identifiers</key>
<array>
<string>iCloud.com.wordsjam</string>
</array>
<key>com.apple.developer.icloud-services</key>
<array>
<string>CloudKit</string>
</array>
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)com.wordsjam</string>
</array>
</dict>
</plist>