我目前正在修改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目前包中没有代码,所以我确信这不是代码问题。下面是我的包裹的拼贴:
<?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生成的,所以我不确定问题会是什么。任何洞察力都将不胜感激。
编辑我发现这个问题来自于另一个插件,与我正在开发的插件无关。
发布于 2012-03-29 00:34:40
错误是告诉您,您有一个字符串在某个地方应该有字典。
https://stackoverflow.com/questions/9878075
复制相似问题