1

我尝试将几个 SIMBL 插件(例如 Afloat 和 FScriptAnywhere)注入 Chrome 和其他应用程序。

它适用于所有其他应用程序,但不适用于 Chrome。我在控制台上得到这个输出:

01.09.11 13:30:15,911 SIMBL Agent: Google Chrome started
01.09.11 13:30:15,912 SIMBL Agent: app start notification: {
    NSApplicationBundleIdentifier = "com.google.Chrome";
    NSApplicationName = "Google Chrome";
    NSApplicationPath = "/Applications/Google Chrome.app";
    NSApplicationProcessIdentifier = 87543;
    NSApplicationProcessSerialNumberHigh = 0;
    NSApplicationProcessSerialNumberLow = 30412031;
    NSWorkspaceApplicationKey = "<NSRunningApplication: 0x40092c060 (com.google.Chrome - 87543)>";
}
01.09.11 13:30:15,913 SIMBL Agent: checking bundle /Users/az/Library/Application Support/SIMBL/Plugins/Afloat.bundle
01.09.11 13:30:15,913 SIMBL Agent: checking target identifier *
01.09.11 13:30:15,914 SIMBL Agent: send inject event
01.09.11 13:30:15,956 SIMBL Agent: eventDidFail:'tvea' error:Error Domain=NSOSStatusErrorDomain Code=-1708 "The operation couldn’t be completed. (OSStatus error -1708.)" (the AppleEvent was not handled by any handler ) UserInfo=0x400877940 {ErrorNumber=-1708} userInfo:{
    ErrorNumber = "-1708";
}
01.09.11 13:30:15,957 [0x0-0x1d00cff].com.google.Chrome: Google Chrome: OpenScripting.framework - can't find entry point InjectEventHandler in scripting addition /Library/ScriptingAdditions/SIMBL.osax.

我认为eventDidFail:'tvea'可以忽略该错误,因为我在所有应用程序上都得到了它(尽管我想知道它是什么)。

但是,我认为最后一个错误Google Chrome: OpenScripting.framework - can't find entry point InjectEventHandler in scripting addition /Library/ScriptingAdditions/SIMBL.osax是相关的。

这是什么意思?会是什么呢?

4

1 回答 1

2

啊,由于稳定​​性问题,它似乎是 Chrome 自己在博客 SIMBL 插件中引入的一项功能。

http://www.conceivablytech.com/8990/products/google-stabilizes-chrome-for-mac-os-x-lion-adds-pulseaudio-for-linux


这是 Chrome 的补丁。这是错误报告。有趣的是,顺便说一句。它使用来自 mach_star 的 mach_override来修补内部函数_CFBundleLoadExecutableAndReturnError以添加对列入黑名单的库的检查。


我在此处提交了有关禁用该 CFBundleBlocker 的方法的错误报告。


我找到了一种在 Chrome 中解决 CFBundleBlocker 的方法:

我修补了 SIMBL 以在/System/Library而不是在/Library. 补丁版本可以在这里找到。此外,已修补的 SIMBL 也在/System/Library/Application Support/SIMBL/Plugins/. SIMBL 插件必须安装在该目录中,否则 Chrome 也会阻止它们。

于 2011-09-01T11:44:09.933 回答