我正在修补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生成的,所以我不确定问题是什么。任何见解将不胜感激。
编辑我发现这个问题来自另一个插件,与我正在处理的插件无关。
答案 0 :(得分:1)
错误告诉你在某个地方应该有字典的字符串。