2010-02-23 80 views
0

我通過devtools卸載命令卸載了它,並重新安裝了3次,無濟於事。這一切都從我從DEV門戶下載並安裝iphone_sdk_3.1.3_with_xcode_3.2.1__snow_leopard__10m2003a.dmg開始。XCode 3.2.1在OSX上啓動時崩潰10.6.2

我拋棄了我的com.apple.xcode.plist文件,卸載了所有的xcode插件以及Growlcode,但仍然無法解決此問題。

以下是錯誤信息:

Process:   Xcode [1096] 
Path:   /Developer/Developer Applications/Xcode.app/Contents/MacOS/Xcode 
Identifier:  com.apple.Xcode 
Version:   3.1.2 (1149) 
Build Info:  DevToolsIDE-11490000~1 
Code Type:  X86 (Native) 
Parent Process: launchd [196] 

Date/Time:  2010-02-22 21:03:05.858 -0700 
OS Version:  Mac OS X 10.6.2 (10C540) 
Report Version: 6 

Interval Since Last Report:   373328 sec 
Crashes Since Last Report:   17 
Per-App Interval Since Last Report: 305 sec 
Per-App Crashes Since Last Report: 17 
Anonymous UUID:      2F82DA63-66A6-4C25-9C69-C2D02627B388 

Exception Type: EXC_BAD_INSTRUCTION (SIGILL) 
Exception Codes: 0x0000000000000001, 0x0000000000000000 
Crashed Thread: 0 Dispatch queue: com.apple.main-thread 

Application Specific Information: 
objc[1096]: garbage collection is ON 
objc[1096]: layout_bitmap_or: layout bitmap too short: PBXJavaParentDV 

Thread 0 Crashed: Dispatch queue: com.apple.main-thread 
0 libobjc.A.dylib     0x96a5d43e _objc_fatal + 95 
1 libobjc.A.dylib     0x96a5dacf layout_bitmap_or + 91 
2 libobjc.A.dylib     0x96a5158c really_connect_class + 243 
3 libobjc.A.dylib     0x96a5137a connect_class + 254 
4 libobjc.A.dylib     0x96a5131f connect_class + 163 
5 libobjc.A.dylib     0x96a4fd67 _read_images + 1303 
6 libobjc.A.dylib     0x96a65933 map_images_nolock + 1545 
7 libobjc.A.dylib     0x96a4f0d9 map_images + 72 
8 dyld       0x8fe03f2d dyld::notifyBatchPartial(dyld_image_states, bool, char const* (*)(dyld_image_states, unsigned int, dyld_image_info const*)) + 795 
9 dyld       0x8fe0decd ImageLoader::link(ImageLoader::LinkContext const&, bool, bool, ImageLoader::RPathChain const&) + 251 
10 dyld       0x8fe056af dyld::link(ImageLoader*, bool, ImageLoader::RPathChain const&) + 137 
11 dyld       0x8fe0b242 dlopen + 471 
12 libSystem.B.dylib    0x92b3f048 dlopen + 66 
13 com.apple.CoreFoundation  0x94937109 _CFBundleDlfcnLoadBundle + 233 
14 com.apple.CoreFoundation  0x94936c7a _CFBundleLoadExecutableAndReturnError + 1370 
15 com.apple.Foundation   0x90c342df _NSBundleLoadCode + 995 
16 com.apple.Foundation   0x90c33a67 -[NSBundle loadAndReturnError:] + 820 
17 com.apple.Foundation   0x90c3372d -[NSBundle load] + 42 
18 com.apple.Xcode.DevToolsCore 0x000976e4 -[XCPluginManager loadPluginBundle:] + 516 
19 com.apple.Xcode.DevToolsCore 0x00092ad2 -[XCPluginManager findAndLoadPluginsInDomain:] + 1522 
20 com.apple.Xcode.DevToolsCore 0x000924cd -[XCPluginManager findAndLoadPlugins] + 45 
21 com.apple.Xcode.DevToolsCore 0x0008c6b9 XCInitializeCoreIfNeeded + 4441 
22 com.apple.Xcode     0x00003252 0x1000 + 8786 
23 com.apple.Foundation   0x90c031c7 _nsnote_callback + 176 
24 com.apple.CoreFoundation  0x949309a9 __CFXNotificationPost + 905 
25 com.apple.CoreFoundation  0x949303da _CFXNotificationPostNotification + 186 
26 com.apple.Foundation   0x90bf8094 -[NSNotificationCenter postNotificationName:object:userInfo:] + 128 
27 com.apple.Foundation   0x90c05471 -[NSNotificationCenter postNotificationName:object:] + 56 
28 com.apple.AppKit    0x95cc87bd -[NSApplication finishLaunching] + 493 
29 com.apple.AppKit    0x95cc81b9 -[NSApplication run] + 79 
30 com.apple.AppKit    0x95cc0535 NSApplicationMain + 574 
31 com.apple.Xcode     0x00002bca 0x1000 + 7114 

回答

2

獲得的第一個參數dlopen。這可能指向損壞的文件。你可以用gdb來做到這一點。

$ gdb /Developer/Applications/Xcode.app/Contents/MacOS/Xcode 
(gdb) run 
... program will hopefully crash ... 
(gdb) bt 
(gdb) f N    [where N is the highest numbered 'dlopen' frame] 
(gdb) p (char *)*($esp) [I think... can't test now, I'm on PPC] 
+0

K所以它從命令行工作,但不是當我從Spotlight或Dock啓動它時,如何解決此問題的任何線索。 – 2010-02-23 04:52:34

+0

從崩潰中獲取核心轉儲。然後你可以將核心轉儲加載到gdb中,並使用上面的相同命令檢查它。 – 2010-02-23 04:55:12

+0

非常感謝,這幫助我確定了問題。確切的問題是,我有一個以前的版本(3版本前)安裝在/ Developer/Developer Applications中的XCode,我從來沒有使用過。出於某種原因,當我安裝新版本時,舊版本在Spotlight中成爲最受歡迎的版本,從未發生過。您的建議嘗試從命令行中引導我到解決方案,謝謝一堆! – 2010-02-23 05:00:46