Mac应用程序崩溃(由于授权而终止),无论是否启用了授权 [英] Mac application crashes (killed due to entitlements) regardless of whether entitlements are enabled

查看:68
本文介绍了Mac应用程序崩溃(由于授权而终止),无论是否启用了授权的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在权利"文件中启用了iCloud的应用程序,但实际上并未使用该功能. (只是连续弄鸭子,这样以后我就可以打开功能了.)

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

我发现这很奇怪,因为我的App ID和配置配置文件已经使用iCloud进行了很长时间的配置,并且iCloud已在开发版本中积极用于测试.

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:

但是,即使在清理并重新启动后,该应用程序也会以同样的方式被杀死.我还尝试了在启用了权利的情况下启动,但所有iCloud容器都被删除了.不走运.

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.

推荐答案

我遇到了同样的问题,删除了我创建的用于访问iCloud的配置文件(除清理,垃圾回收容器和派生数据外)-大量试用和;错误.

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.

这篇关于Mac应用程序崩溃(由于授权而终止),无论是否启用了授权的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆