我是用虚拟机安装的MacOSX10.6.6并更新到10.6.8

Xcode4.0.1andiOSSDK4.3

安装一切正常,我以为都OK了``可是当我要运行Xcode时,

却提示“由于某个问题,Xcode不能打!”

部分详细提示如下:

Process:Xcode[308]

Path:/Applications/Xcode.app/Contents/MacOS/Xcode

Identifier:com.apple.dt.Xcode

Version:???(???)

BuildInfo:IDEApplication-990000~49

CodeType:X86-64(Native)

ParentProcess:launchd[89]

Date/Time:2011-07-2210:02:21.374+0800

OSVersion:MacOSX10.6.8(10J869)

ReportVersion:6

IntervalSinceLastReport:6804sec

CrashesSinceLastReport:9

Per-AppCrashesSinceLastReport:9

AnonymousUUID:2ABBCD94-AB7C-4C52-8198-3AC4A1C2BCAC

ExceptionType:EXC_BREAKPOINT(SIGTRAP)

ExceptionCodes:0x0000000000000002,0x0000000000000000

CrashedThread:0

DyldErrorMessage:Librarynotloaded:@rpath/DVTFoundation.framework/Versions/A/DVTFoundation

Referencedfrom:/Applications/Xcode.app/Contents/MacOS/Xcode

Reason:imagenotfound

BinaryImages:0x7fff5fc00000-0x7fff5fc3bdefdyld132.1(???)<69130DA3-7CB3-54C8-ABC5-423DECDD2AF7>/usr/lib/dyld

......................................................................

......................................................................

弄了半天搞不定,不知是什么原因,害得我又是重装系统又是重装xcode,还是不行。后来在国外外网站上看在一个帖子,总算弄明白了。原来是xcode的路径不正确。

xcode安装成功后,为了每次能够快速打开,我把在/developer/Applications/目录中的xcode拖放到屏幕下方工具栏的“应用程序”文件夹里面,路径错了!其实直接拖放到工具栏上就行了。有时拖放到桌面上也会遇到此问题。

参见国外网址:http://forums.whirlpool.net.au/archive/977205

原贴RomanT提问:

DyldErrorMessage:

Librarynotloaded:@rpath/DevToolsFoundation.framewor­k/Versions/A/DevToolsFoundation

Referencedfrom:/Applications/Xcode.app/Contents/M­acOS/Xcode

Reason:imagenotfound

anyoneseenthisbefore?

Macpomme回复:

WheredidyouinstallXCode?

Olderversions,Ibelieve,hadtobeinstalledintoaspecificlocation.

RomanT追问:

Steve-Ireinstalleditlastnight,tonoavail.

Venom-defaultdirectory.Thisisthelatestxcodefrommyknowledge.

Idon'tuseit-butIdon'tlikethingsnotworking,soIwanttofixit,justinthecaseIdecidetotinkerwithitoneday.

SteveJoynt回复:

MyXCodeisin/Developer/Applications,butfromtheerrormessageitlookslikeyoursisin/Applications.Didyoumoveitbyanychance?AreyourunningLeopard?

RomanT回复:

Steve-you'retheman!

Iwasplayingwithaliases,andobviouslyendeduphavingacopyinmy/Applicationsfolder.IuseQuicksilver,andalwaysaskedforXCode,andbydefaultitjustgrabbedonfrom/Applicationsasopposedto/Developer/Applications.

allisgoodnow.

Manythanks.