0
我目前正在修补SIMBL,试图制作我自己的插件。我目前正在按照http://www.culater.net/wiki/moin.cgi/CocoaReverseEngineering提供的教程进行操作,并且完全确定我已经完全遵循了它。然而,当我编译并把我捆在我SIMBL目录,我在日志中收到以下错误信息:SIMBL“[NSCFString objectForKey:]:无法识别的选择器发送到isntance”
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中:是由的XCode 3产生
<?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>
大多数的一切,所以我不确定这个问题可能是什么。任何有识之士将不胜感激。
编辑我发现此问题是由另一个插件引起的,与我正在使用的插件无关。
是的,我发现这个问题是另一个插件。当我禁用它时,错误消失了。 – Julio 2012-03-29 15:06:09