ShareRecord: Unable to find applicationIdentifier for containerId

Our app supports iCloud CloudKit sharing and provides URLs of CKShare records to users (e.g. via UICloudSharingController). Clicking on the URL in the Apple Mail or Messages app in macOS or iOS works fine. Pasting the link into Safari on iOS also works fine.


But including the link in a web page or pasting it into Safari or Chrome on macOS or Edge on Windows 10 (we have a fall-back web site for non-Apple users) results in a fatal "iCloud has stopped responding" error page displayed in the browser.


The app is a "universal" app and is available in both the Mac App Store and iOS App Store. All the CloudKit features otherwise work fine on both platforms.


Does anyone have an idea what we might do to solve this? Do we have something misconfigured somewhere?

I've also submitted a DTS Technical Support Inquiry #735184444 and Feedback #FB7697827.


For example:


https://www.icloud.com/share/0bjtbTTaM5b7bG1ff6dnKFbmg#Wizard_Stories


Results in:

"iCloud has stopped responding."


Details

APP NAME

cloudos2


CLIENT TIME

Mon May 11 2020 14:04:46 GMT-0700 (PDT) (1589231086615)


USER AGENT

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Safari/605.1.15


HOSTNAME

www.icloud.com


BUILD INFO

2007Hotfix35__2007Hotfix35__en-us


SESSION ID

e8317bf4-9fc6-4678-b3e9-e190619fdfa8


ENVIRONMENT INFO

PROD


REPORTED ERROR TITLE

ShareRecord: Unable to find applicationIdentifier for containerId = iCloud.com.xxxxx.xxxxx and fileExtension = undefined


REPORTED ERROR TYPE

UNHANDLED_EXCEPTION


ERROR CONTEXT

undefined


LINE NUMBER

11


STACK

r@https://www.icloud.com/system/cloudos2/2007Hotfix35/en-us/main.js:11:88103

a@https://www.icloud.com/system/cloudos2/2007Hotfix35/en-us/main.js:11:88150

_getApplicationIdentifier@https://www.icloud.com/system/cloudos2/2007Hotfix35/en-us/main.js:11:405433

_extractCloudKitResponse@https://www.icloud.com/system/cloudos2/2007Hotfix35/en-us/main.js:11:403382

init@https://www.icloud.com/system/cloudos2/2007Hotfix35/en-us/main.js:11:402391

create@https://www.icloud.com/system/cloudos2/2007Hotfix35/en-us/main.js:11:237251

https://www.icloud.com/system/cloudos2/2007Hotfix35/en-us/main.js:11:408011

r@https://www.icloud.com/system/cloudos2/2007Hotfix35/en-us/main.js:11:439698

i@https://www.icloud.com/system/cloudos2/2007Hotfix35/en-us/main.js:11:180696

promiseReactionJob@[native code]

A month later, this problem still occurs so I was wondering if there is any update from an Apple engineer on when it might be fixed?
Based on your report, an issue was identified that is in the process of being fixed. The fix is expected to be in place later this summer. Please refer to your DTS incident and/or Feedback report for future status on this issue. Thank you for your report, and for helping us to make CloudKit better.
It appears to finally be fixed!! Thanks!
This is definitely NOT fixed.

Same here. Works on iOS, but not macOS. On iOS simulator, opening a CloudKit Share URL works fine. On macOS, I get the same kind of error. Filed FB9326669.

Edit: Figured out what was causing it for me. I didn't have a sharing fallback URL (I assumed it was optional, being a fallback URL.) Without it, it won't know where to redirect the share. You can dig through the actual JS on the error page to see what it's doing when it's searching for an applicationIdentifier. Solution seems to be to set that to be a deep link + load the share when opened in app, or to have an intermediate site that tries to open it in the app.

Has anyone had any success figuring out what's causing this? No share links I create in the simulator work.

Even using apple's CloudKit + CoreData example, out of the box, I get this error when sharing links:

APP NAME
cloudos2

CLIENT TIME
Fri Mar 11 2022 15:44:38 GMT-0500 (Eastern Standard Time) (1647031478196)

USER AGENT
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:97.0) Gecko/20100101 Firefox/97.0

HOSTNAME
www.icloud.com

BUILD INFO
2208Project39__2208B28__en-ca

SESSION ID
65f98416-8374-4878-a36e-0f3a9a5b4e5f

ENVIRONMENT INFO
PROD

REPORTED ERROR TITLE
ShareRecord: Unable to find applicationIdentifier for containerId = iCloud.MY.CONTAINER.IDENTIFIER and fileExtension = undefined

REPORTED ERROR TYPE
UNHANDLED_EXCEPTION

LINE NUMBER
11

STACK
r@https://www.icloud.com/system/cloudos2/2208Project39/en-ca/main.js:11:88639
a@https://www.icloud.com/system/cloudos2/2208Project39/en-ca/main.js:11:88690
_getApplicationIdentifier@https://www.icloud.com/system/cloudos2/2208Project39/en-ca/main.js:11:421359
_extractCloudKitResponse@https://www.icloud.com/system/cloudos2/2208Project39/en-ca/main.js:11:419260
init@https://www.icloud.com/system/cloudos2/2208Project39/en-ca/main.js:11:417999
create@https://www.icloud.com/system/cloudos2/2208Project39/en-ca/main.js:11:255839
resolveShortGuid/<@https://www.icloud.com/system/cloudos2/2208Project39/en-ca/main.js:11:423970
r@https://www.icloud.com/system/cloudos2/2208Project39/en-ca/main.js:11:461581
i@https://www.icloud.com/system/cloudos2/2208Project39/en-ca/main.js:11:194550

ERROR CONTEXT
undefined

the fallback url can't be the end all solution with your own server? Did it just fix itself for you? This is just a fix to open the app another way, but if its installed it should open the app?

I'm trying the Apple sample code https://developer.apple.com/documentation/coredata/sharing_core_data_objects_between_icloud_users and get this error when trying to open the iCloud.com link

I tried many different ways to connect the container removed added deleted identifiers tried with Xcode 13 and 14 and the container and bundle id should be named correctly

Here people also have problems: https://github.com/apple/sample-cloudkit-sharing/issues/15#issue-1279829933

But it works for other apps? Is there something broken with my developer account and the iCloud to container relation?

ShareRecord: Unable to find applicationIdentifier for containerId
 
 
Q