0

我目前正在修补 SIMBL,试图制作自己的插件。我目前正在按照http://www.culater.net/wiki/moin.cgi/CocoaReverseEngineering提供的教程进行操作,并且完全确定我完全按照它进行操作。但是,当我编译并将我的包放在我的 SIMBL 目录中时,我在日志中收到以下错误消息:

3/26/12 1:52:33 PM  1:52:33 PM  SIMBL Agent[37793]  37793   -[NSCFString objectForKey:]: unrecognized selector sent to instance 0x20029e600
3/26/12 1:52:33 PM  1:52:33 PM  SIMBL Agent[37793]  37793   -[NSCFString objectForKey:]: unrecognized selector sent to instance 0x20029e600

捆绑包中目前没有代码,所以我确定这不是代码问题。以下是我的捆绑包的 plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>CFBundleDevelopmentRegion</key>
    <string>English</string>
    <key>CFBundleExecutable</key>
    <string>${EXECUTABLE_NAME}</string>
    <key>CFBundleIconFile</key>
    <string></string>
    <key>CFBundleIdentifier</key>
    <string>com.yourcompany.${PRODUCT_NAME:rfc1034Identifier}</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>${PRODUCT_NAME}</string>
    <key>CFBundlePackageType</key>
    <string>BNDL</string>
    <key>CFBundleShortVersionString</key>
    <string>1.0</string>
    <key>CFBundleSignature</key>
    <string>????</string>
    <key>CFBundleVersion</key>
    <string>1</string>
    <key>CFPlugInDynamicRegisterFunction</key>
    <string></string>
    <key>CFPlugInDynamicRegistration</key>
    <string>NO</string>
    <key>CFPlugInFactories</key>
    <dict>
        <key>00000000-0000-0000-0000-000000000000</key>
        <string>MyFactoryFunction</string>
    </dict>
    <key>CFPlugInTypes</key>
    <dict>
        <key>00000000-0000-0000-0000-000000000000</key>
        <array>
            <string>00000000-0000-0000-0000-000000000000</string>
        </array>
    </dict>
    <key>CFPlugInUnloadFunction</key>
    <string></string>
    <key>NSPrincipalClass</key>
    <string>MySamplePlugin</string>
    <key>SIMBLTargetApplications</key>
    <array>
        <dict>
            <key>BundleIdentifier</key>
            <string>com.apple.Finder</string>
            <key>MaxBundleVersion</key>
            <string>412</string>
            <key>MinBundleVersion</key>
            <string>412</string>
        </dict>
    </array>
</dict>
</plist>

大多数东西都是由 XCode 3 生成的,所以我不确定问题可能是什么。任何见解将不胜感激。

编辑我发现这个问题是由另一个插件引起的,与我正在处理的插件无关。

4

1 回答 1

1

该错误告诉您在应该有字典的地方有一个字符串。

于 2012-03-29T00:34:40.897 回答