我尝试使用 SMJobBless 为我的应用程序制作辅助工具;当我通过通道遵循设置时:
http://www.tanhao.me/pieces/1623.html/
当我运行时,xcode 给了我:
SMJobBless 失败,错误:错误域 = CFErrorDomainLaunchd 代码 = 8“(空)”
8 表示 kSMErrorJobPlistNotFound;但我检查了其他链接标志:
并且捆绑包存储plist:
这是同一个问题: SMJobBless 错误
但我不在答案之下,我无权添加评论
SMJobBless 演示设置 info.plist 键SMPrivilegedExecutables
是这样的;但我不知道如何将其应用于我的程序:
anchor apple generic and identifier "com.apple.bsd.SMJobBlessHelper" and (certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = xxxxxxxxxx)