使用Webkit的调试版本运行Safari [英] Running Safari with debug version of Webkit

查看:246
本文介绍了使用Webkit的调试版本运行Safari的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过运行以下命令来编译Webkit的调试版本.

I compiled a debug version of webkit by running the following command.

工具/脚本/build-webkit-调试

Tools/Scripts/build-webkit --debug

在成功构建之后,我尝试通过运行以下命令来使用已编译的Webkit调试版本运行safari.

After a successful build, I tried to run safari with the compiled debug version of Webkit by running the following command.

sudo Tools/Scripts/run-safari --debug

但是我遇到以下错误:

使用DYLD_FRAMEWORK_PATH设置为来启动SafariForWebKitDevelopment 指向内置的WebKit /Users/syst3m/Desktop/Research/webkit/WebKit/WebKitBuild/Debug. _RegisterApplication(),无法建立与WindowServer的默认连接,_CGSDefaultConnection()为NULL. 2019-01-30 10:34:16.527 SafariForWebKitDevelopment [81259:1239156] + [NSXPCSharedListener endpointForReply:withListenerName:]:尝试获取侦听器的端点时发生错误 'SandboxBroker':连接无效

Starting SafariForWebKitDevelopment with DYLD_FRAMEWORK_PATH set to point to built WebKit in /Users/syst3m/Desktop/Research/webkit/WebKit/WebKitBuild/Debug. _RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL. 2019-01-30 10:34:16.527 SafariForWebKitDevelopment[81259:1239156] +[NSXPCSharedListener endpointForReply:withListenerName:]: an error occurred while attempting to obtain endpoint for listener 'SandboxBroker': Connection invalid

是否还需要进行其他设置?

Are there any more setup that needs to be done?

谢谢.

推荐答案

您需要授予终端"Full Disk Access"权限. (或iTerm或您从中发出命令的任何东西)

You need to give Terminal "Full Disk Access". (or iTerm or whatever you are issuing the command from)

系统偏好设置"->安全和隐私"->全盘访问"->"+"

"System Preferences" -> "Security & Privacy" -> "Full Disk Access" -> "+"

http://osxdaily. com/2018/10/09/fix-operation-not-permitted-terminal-error-macos/

这篇关于使用Webkit的调试版本运行Safari的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆