Mac application crashes (killed due to entitlements) regardless of whether entitlements are enabled

六眼飞鱼酱① 提交于 2019-12-10 12:13:58

问题


I have an application that has iCloud enabled in the Entitlements file, but doesn't actually make use of the feature. (Just getting my ducks in a row so I can switch on the functionality in the future.)

My application was launching fine, but yesterday it suddenly stopped launching. I was able to determine from the Console that the app was being killed due:

1/6/12 7:25:17.433 AM taskgated: killed com.xxx.xxx[pid 14991] because its use of the com.apple.developer.ubiquity-container-identifiers entitlement is not allowed

I found this strange, since my App ID and provisioning profile have been configured w/ iCloud for a long while now, and iCloud has been actively used in development versions for testing.

Anyway, to test a few unrelated features I disabled entitlements for the application, deselecting the "Enable Entitlements" checkbox in the project editor:

But, even after cleaning and relaunching, the application is killed in the same way. I have also tried launching with entitlements enabled, but with the iCloud Containers all deleted. No luck.


回答1:


I had the same problem, deleting the provisioning profile I created to access iCloud helped (besides of cleaning, trashing Container & derived data) - lot of trial & error.



来源:https://stackoverflow.com/questions/8757811/mac-application-crashes-killed-due-to-entitlements-regardless-of-whether-entit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!