在 Xcode 中打开权限会阻止 Bare Bones 应用程序启动 [英] Turning Entitlements on in Xcode Prevents Bare Bones App From Launching

查看:13
本文介绍了在 Xcode 中打开权限会阻止 Bare Bones 应用程序启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Xcode 4.2 中创建了一个基本应用程序.非常简单的应用程序,我没有改变任何东西.按下运行,您将获得标准的基本应用程序窗口.如果我为我的目标打开权限并点击运行,我不会收到任何调试器错误,但窗口永远不会出现.我用 Console.app 检查了日志并得到以下信息:

我得到的第一个错误:

taskgated: 杀死 com.alsbury.EntitlementsTest[pid 15903] 因为它不允许使用 com.apple.developer.ubiquity-container-identifiers 权限

删除 iCloud 容器com.alsbury.EntitlementsTest"后,我收到此错误:

taskgated: 杀死 com.alsbury.EntitlementsTest[pid 15903] 因为它不允许使用 com.apple.developer.ubiquity-container-identifiers 权限

由于 iCloud 类型的东西,我什至在我的开发者帐户中添加了一个应用程序、一个配置文件并添加了我的机器.有什么想法吗?现在很迷茫.

解决方案

确定一些事情.不幸的是,这是一个乏味的过程,但如果您仔细按照步骤进行操作,您应该一切准备就绪.

1) 在 Apple 网站的 Developer Certificate Utility 页面中,您已注册您的机器及其 UUID.

2)您已创建并下载了开发证书.

3) 您的 App ID(在同一实用程序中)已为 iCloud 配置.这通常只涉及您选中一个复选框.

4) 您的应用程序的开发配置文件指向 (3) 中提到的 App ID,以及 (1) 中注册的硬件系统),以及(2)

中提到的证书

5) 下载新的配置文件后,通过双击将其安装在系统中,并在 Xcode 中将其拖到管理器中的配置文件"窗格中.>

6) 在您的应用程序的构建设置中,确保代码签名标识指向您的新配置文件.

I created a basic application in Xcode 4.2. Very simple application, I have not changed a single thing. Push run, and you get the standard base application window. If I turn entitlements on for my target and hit run, I don't get any debugger errors, but the window never comes up. I checked the logs with Console.app and got the following:

First error I get:

taskgated: killed com.alsbury.EntitlementsTest[pid 15903] because its use of the com.apple.developer.ubiquity-container-identifiers entitlement is not allowed

After removing the iCloud Containers "com.alsbury.EntitlementsTest" I get this error:

taskgated: killed com.alsbury.EntitlementsTest[pid 15903] because its use of the com.apple.developer.ubiquity-container-identifiers entitlement is not allowed

Because of the iCloud type stuff, I even added an Application to my developer account, a provisioning profile and added my machine. Any thoughts? Very confused right now.

解决方案

Make sure of a few things. It's unfortunately a tedious process, but if you follow the steps carefully, you should be all set.

1) In the Developer Certificate Utility page on Apple's site, you have your machine registered along with its UUID.

2) You've created and downloaded a development certificate.

3) Your App ID (in the same utility) is configured for iCloud. This generally just involves you checking a checkbox.

4) Your development provisioning profile for your application is pointing to the App ID mentioned in (3), and also the hardware system registered in (1), and also the certificate mentioned in (2)

5) After downloading the new provisioning profile, install it both in the system by double-clicking it, and in Xcode by dragging it to the "Provisioning Profiles" pane in your Organizer.

6) In the Build Settings for your application, make sure that the Code Signing Identity is pointing to your new provisioning profile.

这篇关于在 Xcode 中打开权限会阻止 Bare Bones 应用程序启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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