2011-11-21 77 views
0

我正在做一個讀取器應用程序,它可以將文本同步到googledoc,我得到了工作示例代碼的文本同步到googledoc,但我把所有的代碼放到我的項目中,除了委託代碼,我得到這個錯誤,架構i386的未定義符號:iphone中的錯誤

Ld /Users/admin/Library/Developer/Xcode/DerivedData/ELTouchBible-eqhoridwhfpkcvddemynmhjrvyor/Build/Products/Release-iphonesimulator/Bible.app/Bible normal i386 
    cd "/Users/admin/Desktop/bible day updates/ELTouchBiblelatest3 doingggg copy 11" 
    setenv MACOSX_DEPLOYMENT_TARGET 10.6 
    setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
    /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -L/Users/admin/Library/Developer/Xcode/DerivedData/ELTouchBible-eqhoridwhfpkcvddemynmhjrvyor/Build/Products/Release-iphonesimulator "-L/Users/admin/Desktop/bible day updates/ELTouchBiblelatest3 doingggg copy 11/Classes" -F/Users/admin/Library/Developer/Xcode/DerivedData/ELTouchBible-eqhoridwhfpkcvddemynmhjrvyor/Build/Products/Release-iphonesimulator -filelist /Users/admin/Library/Developer/Xcode/DerivedData/ELTouchBible-eqhoridwhfpkcvddemynmhjrvyor/Build/Intermediates/ELTouchBible.build/Release-iphonesimulator/Bible.build/Objects-normal/i386/Bible.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -framework Foundation -framework UIKit -lxml2 -lsqlite3.0 -framework CoreData -framework CoreGraphics -framework MessageUI -framework QuartzCore -lOAuth -o /Users/admin/Library/Developer/Xcode/DerivedData/ELTouchBible-eqhoridwhfpkcvddemynmhjrvyor/Build/Products/Release-iphonesimulator/Bible.app/Bible 

Undefined symbols for architecture i386: 
    "_DebugLog", referenced from: 
     -[NSData(IdleLoop) dataDecodeFromHtml] in IdleLoop.o 
     -[NSData(IdleLoop) dataEncodeToHtml] in IdleLoop.o 
     -[GoogleDocs fRetryCachedQuery] in GoogleDocs.o 
     -[GoogleDocs retitleNextFile] in GoogleDocs.o 
     -[GoogleDocs downloadEntry:] in GoogleDocs.o 
     -[GoogleDocs uploadFileTicket:failedWithError:] in GoogleDocs.o 
     -[GoogleDocs uploadFileTicket:finishedWithEntry:] in GoogleDocs.o 
     ... 
    "_Assert", referenced from: 
     -[NSData(IdleLoop) dataEncodeToHtml] in IdleLoop.o 
     -[GoogleDocs sendFailureNotice:code:] in GoogleDocs.o 
     -[GoogleDocs docListListFetchTicket:failedWithError:] in GoogleDocs.o 
     -[GoogleDocs beginFolderCheck:createIfNeeded:] in GoogleDocs.o 
     -[GoogleDocs beginFileDeleteTitle:inFolder:keepingNewest:] in GoogleDocs.o 
     -[GoogleDocs beginFileRetitleFrom:toTitle:inFolder:] in GoogleDocs.o 
     -[GoogleDocs beginDownloadTitle:inFolder:] in GoogleDocs.o 
     ... 
    (maybe you meant: _AssertSelectorNilOrImplementedWithArguments) 
ld: symbol(s) not found for architecture i386 
collect2: ld returned 1 exit status 

但樣本項目運作良好在Xcode 4,我使用xcode4.How解決這個error.please幫我做到這一點。 在此先感謝。

+0

檢查依賴關係,並檢查應用程序的體系結構。 – Legolas

+0

@李格拉斯先生你能解釋一下嗎? – ICoder

+0

請檢查構建設置和依賴關係。如果您點擊該項目,YOu可以檢查它們。 – Legolas

回答

1

您所看到的問題是_DebugLog和_Assert函數未編譯爲可在模擬器上工作。

查看代碼以查看代碼中定義_DebugLog和_Assert函數的位置。如果你找不到它們,請創建一些與他們的行爲相符的東西。如果你確實找到了它們,確保它們生成的文件在構建模擬器時包含在其中。

我希望這對你有意義!

+0

@Micheal Dautermann Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2失敗,退出代碼爲1 我現在得到這個錯誤 – ICoder

+0

聽起來像你在縮小它。我希望我對你的原始答案是有道理的。您只需要將_DebugLog和_Assert以某種方式編譯到您的模擬器應用程序中。如果你找不到他們定義的位置,請創建你自己的。 –

+0

,哦,我的上帝,我現在什麼都沒有得到。 – ICoder

相關問題