我在尝试在我的助手应用程序上签名。
我已经为它创建了一个单独的配置文件,它是有效的,并且可以工作。我可以存档和导出它的Mac提交。
但是,当我运行主应用程序并将助手添加为守护进程时,助手应用程序将开始运行,但它不能正常工作。几乎什么也做不了..。
当我禁用代码符号并离开沙箱时,检查助手应用程序是否有效。
我还得到了一堆日志:
日志1
xpcd[236]:
(null): have symlinks: (
)日志2
Not allowing process xxxx to launch "/Path/App.app/Contents/Library/LoginItems/Helper.app" because it has not been launched previously by the user日志3
Not allowing process xxxx to register app "Path/App.app/Contents/Library/LoginItems/Helper.app" for launch.日志4
<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发布于 2013-05-23 07:13:51
解决方案
这个应用程序必须在/Applications文件夹中才能工作.
多亏了蒂姆·施罗德!
https://stackoverflow.com/questions/16707136
复制相似问题