URLForUbiquityContainerIdentifier returns nil even if configured correctly

后端 未结 8 2201
小鲜肉
小鲜肉 2020-12-31 06:47

I am having the problem, that URLForUbiquityContainerIdentifier is returning nil in some cases even if the user has set up everything correctly in the settings. My code:

8条回答
  •  悲&欢浪女
    2020-12-31 07:32

    Check that you have enabled iCloud containers in your entitlement. The containers are not added by default when you enable entitlements. Click the "+" sign in Target/Summary/Entitlements to add your appId.

提交回复
热议问题