0

当我在 OS X (SL) 上加载 gitk(git 版本 1.6.5.1)时,我收到有关 GreaseKit 的错误/警告:

Error loading /Library/Application Support/SIMBL/Plugins/GreaseKit.bundle/Contents/MacOS/GreaseKit: dlopen(/Library/Application Support/SIMBL/Plugins/GreaseKit.bundle/Contents/MacOS/GreaseKit, 265): no suitable image found. Did find: /Library/Application Support/SIMBL/Plugins/GreaseKit.bundle/Contents/MacOS/GreaseKit: GC capability mismatch

gitk 确实启动并且似乎可以正常工作。有人见过这个吗?有什么需要担心的吗?

谢谢,
斯科特

4

3 回答 3

2

您可能希望手动编辑机器上的 GreaseKit.bundle 以仅包含在 Safari 中:

在 Finder 中导航到 /Users//Library/Application Support/SIMBL/Plugins/GreaseKit.bundle 并选择打开包。

里面有一个包含 Info.plist 的 Content 文件夹。在那里,您将最后的 SIMBLTargetApplications 行从:

<key>SIMBLTargetApplications</key>
    <array>
        <dict>
            <key>BundleIdentifier</key>
            <string>*</string>
            <key>MaxBundleVersion</key>
            <string>*</string>
            <key>MinBundleVersion</key>
            <string>*</string>
        </dict>
    </array>

<key>SIMBLTargetApplications</key>
    <array>
        <dict>
            <key>BundleIdentifier</key>
            <string>com.apple.Safari</string>
            <key>MaxBundleVersion</key>
            <string>*</string>
            <key>MinBundleVersion</key>
            <string>*</string>
        </dict>
    </array>

您可以添加其他您希望 GreaseKit 可用的应用程序。

或者,只需在终端窗口中执行此操作以获取文件:

edit ~/Library/Application\ Support/SIMBL/Plugins/GreaseKit.bundle/Contents/Info.plist
于 2011-05-17T06:50:19.240 回答
1

无论您的机器上安装了什么版本的GreaseKit (如 )都与您的二进制文件/Library/Application Support/SIMBL/Plugins/GreaseKit.bundle不兼容 GC 。gitk这意味着 GreaseKit 在gitk.

除非您打算在内部使用 GreaseKit,gitk否则这不是问题(gitk甚至使用 WebKit 吗?)。加载 GreaseKit 的唯一原因可能是因为它的 SIMBL 配置要求将 GreaseKit 加载到所有内容中,无论它是否有用。

如果您的机器上没有人在使用 GreaseKit,您可能会考虑将其删除。

于 2010-01-29T07:18:38.263 回答
0

我在同一个系统上遇到了同样的问题。gitk然而,我什至不会开始。

奇怪的是,我发现如果我在一个实际上不受gitkgit 控制的目录中执行,它会启动并抱怨不在存储库中。然后下次我在实际存储库中执行时,它开始时没有抱怨 GreaseKit,从那以后一切都很好。gitk

或者你可以使用 GitX,它与原生 OS X 非常相似:http: //gitx.frim.nl/

于 2010-02-03T05:05:40.243 回答