Objective c Can';t代码签名助手应用程序正确

Objective c Can';t代码签名助手应用程序正确,objective-c,macos,cocoa,Objective C,Macos,Cocoa,我正在尝试对我的助手应用程序进行代码签名 我已经为它创建了一个单独的资源调配配置文件,它是有效的并且可以工作。 我可以将其存档并导出以提交Mac App Store 但是,当我运行主应用程序时,它将helper添加为守护进程,helper应用程序开始运行,但无法正常工作。它几乎什么都不做 当我禁用代码签名并离开沙盒时,helper应用程序工作正常 我还得到了一堆日志: 日志1 日志2 日志3 日志4 一个pid为xxxx,“Helper”的沙盒应用程序使用appleeventsd签入,但其代码

我正在尝试对我的助手应用程序进行代码签名

我已经为它创建了一个单独的资源调配配置文件,它是有效的并且可以工作。 我可以将其存档并导出以提交Mac App Store

但是,当我运行主应用程序时,它将helper添加为守护进程,helper应用程序开始运行,但无法正常工作。它几乎什么都不做

当我禁用代码签名并离开沙盒时,helper应用程序工作正常

我还得到了一堆日志:


日志1 日志2 日志3 日志4
一个pid为xxxx,“Helper”的沙盒应用程序使用appleeventsd签入,但其代码签名无法验证(可能是因为它已损坏,或者appleeventsd无法读取),因此它无法接收以名称、捆绑id或签名为目标的AppleeEvents。Error=Error:#100013{“NSDescription”=“SecCodeCopyGuestWithAttributes()返回了100013,-.}(handleMessage()/appleEventsD.cp#1755)com.apple.coreservices.appleevents.peer.0x7ff7d3b01a60.xpcq

解决方案 该应用程序必须位于
/Applications
文件夹中才能运行


谢谢你

@NSAddict-您是否必须为助手应用程序创建单独的AppID和设置配置文件?谢谢,我做了这件事,但还是没有运气。我还从/Applications运行,打开.app文件并手动启动帮助程序确实有效。还有其他想法吗?具体来说,我得到了上面的日志4。@真的,我不知道,对不起。在这一步之后,我的一切都在为我工作。
xpcd[236]: 
(null): have symlinks: (
)
Not allowing process xxxx to launch "/Path/App.app/Contents/Library/LoginItems/Helper.app" because it has not been launched previously by the user
Not allowing process xxxx to register app "Path/App.app/Contents/Library/LoginItems/Helper.app" for launch.
<rdar://problem/11489077> A sandboxed application with pid xxxx, "Helper" 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: #100013  { "NSDescription"="SecCodeCopyGuestWithAttributes() returned 100013, -." }  (handleMessage()/appleEventsD.cp #1755) com.apple.coreservices.appleevents.peer.0x7ff7d3b01a60.xpcq