“来自调试器的消息:由于代码签名错误而终止"在调试Mac应用程序时? [英] "Message from debugger: Terminated due to code signing error" when debugging a Mac app?

查看:194
本文介绍了“来自调试器的消息:由于代码签名错误而终止"在调试Mac应用程序时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在沙盒中编写Mac应用程序,似乎无法使代码签名正常工作.我已经从信息"选项卡中为目标选择了开发人员ID",并且尝试让Xcode自动设置我的配置文件以及自己创建配置文件.该应用程序的构建没有任何错误或警告,但是当我尝试构建并运行"时,它给了我以下错误:

I'm writing a Mac app in the sandbox, and can't seem to get code signing to work. I've selected "Developer ID" from the Info tab for my target, and I've tried letting Xcode set up my provisioning profile automatically as well as creating the profile myself. The app builds without any errors or warnings, but when I try to "build and run," it gives me the following error:

推荐答案

console.app中,我注意到我收到以下消息:

In console.app, I noticed I was getting the following message:

3/5/15 4:46:37.151 PM taskgated[73]: killed com.nateparrott.Boxcar[pid 27408] because its use of the com.apple.developer.ubiquity-container-identifiers entitlement is not allowed (error code -67050)

事实证明,我项目中的默认权利文件包含一个空的iCloud容器列表,这导致沙箱认为该应用需要iCloud权限(默认配置中未包含该权限)轮廓).从权利文件中删除iCloud条目即可解决此问题.

It turns out that the default entitlements file in my project included an empty list of iCloud container, which caused the sandbox to think the app needed iCloud permissions (which weren't included in the default provisioning profile). Removing the iCloud entry from the entitlements file solved the problem.

这篇关于“来自调试器的消息:由于代码签名错误而终止"在调试Mac应用程序时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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