Sandboxed App中的错误,加载Helper(LoginItems)时,代码签名问题

Ben*_*enz 8 xcode code-signing sandbox osx-mavericks

我正试图摆脱这个问题(我希望它是最后一个!)

简而言之,我有一个状态栏应用程序,需要从登录开始.我按照本教程http://blog.timschroeder.net/2012/07/03/the-launch-at-login-sandbox-project/

它正在工作的所有东西,但是当在xcode之外的真实竞赛中测试应用程序的时候,我最终在控制台system.log中得到了这条消息:

appleeventsd[52]: <rdar://problem/11489077> A sandboxed application with pid 1258, "xxxxx" checked in with appleeventsd, but its code signature could not be validated ( either because it was corrupt, or could not be read by appleeventsd ) and so it cannot receive AppleEvents targeted by name, bundle id, or signature. Error=ERROR: #-67061 { "NSDescription"="SecCodeCheckValidity() returned -67061, <SecCode 0x7fb0ea714300 [0x7fff71381e10]>." } (handleMessage()/appleEventsD.cp #2072) client-reqs-q

我所做的是使用此命令检查代码签名: spctl --assess --type execute AppName

结果是主应用程序和Helper应用程序的代码签名正常.

正如您在教程中看到的那样,帮助应用程序项目保留在主应用程序项目中.也许这就是原因?

我尝试了不同的签名配置文件,现在我正在使用"Mac Distribuition"

我正在使用OsX Mavericks DP6和Xcode 5 beta ..

有任何想法吗?

小智 1

检查应用程序包的权限(以及包的路径)以确保 appleeventsd 和/或 securityd 守护程序可以读取可执行文件。