使用XCode 4.0.2,我已经构建了一个插件,之前使用的是XCode 3.2,我在“〜/ Library / Application \ Support / Developer / Shared / Xcode / Plug-ins”中安装了我的插件/“
当我在安装插件后打开XCode时,我得到了崩溃,
Xcode3UI无法加载,可能是什么?
UNCAUGHT EXCEPTION (NSInternalInconsistencyException): Couldn't load plug-in 'com.apple.dt.IDE.Xcode3UI' while firing fault for extension 'Xcode.Xcode3UI.Initializer' UserInfo: { NSUnderlyingError = "Error Domain=DVTPlugInErrorDomain Code=2 UserInfo=0x20029d4e0 \"Loading a plug-in failed.\" Underlying Error=(Error Domain=NSCocoaErrorDomain Code=3588 UserInfo=0x2004c7ea0 \"The bundle \U201cXcode3UI\U201d couldn\U2019t be loaded.\")"; } Hints: None Backtrace: 0 0x00007fff86093796 __exceptionPreprocess (in CoreFoundation) 1 0x00007fff8412c0f3 objc_exception_throw (in libobjc.A.dylib) 2 0x000000010001c058 -[DVTExtension _fireExtensionFault] (in DVTFoundation) 3 0x0000000100005fdc __38-[DVTDispatchLock performLockedBlock:] _block_invoke_0 (in DVTFoundation) 4 0x00007fff81b454db dispatch_barrier_sync_f (in libSystem.B.dylib) 5 0x0000000100005f83 -[DVTDispatchLock performLockedBlock:] (in DVTFoundation) 6 0x000000010001bde5 -[DVTExtension _valueForKey:inParameterData:usingSchema:] (in DVTFoundation) 7 0x000000010001bd44 -[DVTExtension valueForKey:] (in DVTFoundation) 8 0x000000010050e9dc _IDEInitializeOnePlugInAndPrerequisites (in IDEFoundation) 9 0x000000010050e260 IDEInitialize (in IDEFoundation) 10 0x000000010084d69c -[IDEApplicationController applicationWillFinishLaunching:] (in IDEKit) 11 0x00007fff8361b8ea _nsnote_callback (in Foundation) 12 0x00007fff8603b000 __CFXNotificationPost (in CoreFoundation) 13 0x00007fff86027578 _CFXNotificationPostNotification (in CoreFoundation) 14 0x00007fff8361284e -[NSNotificationCenter postNotificationName:object:userInfo:] (in Foundation) 15 0x00007fff8443e6fd -[NSApplication finishLaunching] (in AppKit) 16 0x00007fff8443e350 -[NSApplication run] (in AppKit) 17 0x00007fff844371a8 NSApplicationMain (in AppKit) 18 0x0000000100000eec 19 0x0000000000000002
这是链接器输出
/Users/jose/Library/Application Support/Developer/Shared/Xcode/Plug-ins/slice2objcplugin.pbplugin/Contents/MacOS/slice2objcplugin: /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 15.0.0) @rpath/DevToolsCore.framework/Versions/A/DevToolsCore (compatibility version 1.0.0, current version 2002.0.0) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 751.29.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0) /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 227.0.0) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 550.29.0)
有什么想法吗?
答案 0 :(得分:2)
我可能对此类似的问题,我的谷歌搜索出现了你的问题,所以虽然这是一个略有不同的错误信息 - 这个场景足够类似于我以为我会响应。这可能会帮助你。
根据这个网站:http://johnattebury.com/blog/2011/07/xcode-from-snow-leopard-to-lion/重新安装iTunes可能会解决这个问题。
我的错误更接近于上述网站上的错误而不是你的错误,但这三个错误都与Xcode 3 / 10.6和Xcode 4 / 10.7之间的插件问题有关...也许我正在寻找吸管你,但我想我会把它丢在那里。它解决了我的问题,所以也许会照顾你的问题?
祝你好运!