Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
gitk未能在macOS 10.14(莫哈韦)上发布_Git_Macos_Macos Mojave_Gitk - Fatal编程技术网

gitk未能在macOS 10.14(莫哈韦)上发布

gitk未能在macOS 10.14(莫哈韦)上发布,git,macos,macos-mojave,gitk,Git,Macos,Macos Mojave,Gitk,当我尝试在macOS Mojave(10.14.4)上运行gitk时,出现以下错误: 启动脚本中出现错误:file:///System/Library/ScriptingDefinitions/CocoaStandard.sdef:2: I/O警告:无法加载外部实体“file://localhost/System/Library/DTDs/sdef.dtd" ^ file:///System/Library/PrivateFrameworks/FolderActionsKit.framework

当我尝试在macOS Mojave(10.14.4)上运行gitk时,出现以下错误:

启动脚本中出现错误:file:///System/Library/ScriptingDefinitions/CocoaStandard.sdef:2: I/O警告:无法加载外部实体“file://localhost/System/Library/DTDs/sdef.dtd" ^ file:///System/Library/PrivateFrameworks/FolderActionsKit.framework/Versions/A/Resources/FolderActions.sdef:2: I/O警告:无法加载外部实体“file://localhost/System/Library/DTDs/sdef.dtd" ^ 执行时 “exec osascript-e[格式{ 告诉应用程序“系统事件” 将unix id为%d的最前端进程设置为true “结束……” 从内部调用 “如果{[tk windowingsystem]eq“aqua”}{ exec osascript-e[格式]{ 告诉应用程序“系统事件” 设置最前面的进程…” (文件“/usr/local/bin/gitk”第12212行) 我尝试过解决启动gitk时出现的类似问题的方法(重新启动SystemEvents、检查旧的.osax脚本添加、从自制中重新安装git等),但没有成功。我还检查了终端是否有访问系统事件的权限。谷歌搜索错误消息似乎没有发现任何相关信息


gitk在以前版本的macOS上一直非常适合我。

似乎没有链接到Git或
gitk
,因为过去也出现过相同的错误:

  • 在一个
最后一项包括:

与其他人一起进行健全性检查,一个明显的
/System/Library/DTDs/sdef.dtd
是为他们准备的。
我有一份文件的副本,appledoc现在可以像广告上说的那样工作了

因此,首先检查该文件是否存在,如果您可以从另一个Mac 10.14上获得的副本进行替换,则可以排除该问题的特定原因

委员会确认:

回顾时间机器备份,似乎在2019年3月底的某个时候,
sdef.dtd
莫名其妙地消失了

我从备份中恢复了它(讽刺的是,为了做到这一点,我不得不禁用系统完整性保护(SIP)——当然,你可能会认为SIP会从一开始就阻止这种事情发生?),现在一切都好了


确保您的终端程序(iterm或terminal)具有访问系统事件的权限?这与我在删除系统事件访问权限时遇到的错误相同。@evolutionxbox:谢谢您的建议-我刚刚检查了终端是否具有访问系统事件的权限(我甚至禁用了它,并重新启用了它,只是为了确保),所以我仍然在寻找解决方案…只是想确定一下,你在哪里检查了权限?@evolutionxbox:sure-在终端条目下的System Prefs/Security&Privacy/Privacy/Automation中我检查了系统事件。你是否验证了
/System/Library/DTDs/sdef.dtd
确实存在?是的,即时返回到过去机器备份sdef.dtd似乎在2019年3月底的某个时候莫名其妙地消失了。我从备份中恢复了它(讽刺的是,为了做到这一点,我不得不这么做——你可能会认为SIP首先会阻止这种事情发生?)现在一切都好了。赏金将在适当的时候颁发…@PaulR谢谢你的反馈。我已经在答案中加入了你的评论,以提高知名度。
Error in startup script: file:///System/Library/ScriptingDefinitions/CocoaStandard.sdef:2: I/O warning : failed to load external entity "file://localhost/System/Library/DTDs/sdef.dtd"
<!DOCTYPE dictionary SYSTEM "file://localhost/System/Library/DTDs/sdef.dtd">
                                                                            ^
file:///System/Library/PrivateFrameworks/FolderActionsKit.framework/Versions/A/Resources/FolderActions.sdef:2: I/O warning : failed to load external entity "file://localhost/System/Library/DTDs/sdef.dtd"
<!DOCTYPE dictionary SYSTEM "file://localhost/System/Library/DTDs/sdef.dtd">
                                                                            ^
    while executing
"exec osascript -e [format {
        tell application "System Events"
            set frontmost of processes whose unix id is %d to true
        end te..."
    invoked from within
"if {[tk windowingsystem] eq "aqua"} {
    exec osascript -e [format {
        tell application "System Events"
            set frontmost of processes ..."
    (file "/usr/local/bin/gitk" line 12212)