2013-03-10 87 views
4

我的代碼本身沒有錯誤,但是當我嘗試運行時,出現此錯誤 - 找不到架構i386錯誤iOS的符號。我尋找答案,但迄今沒有幫助我。我確定我正在鏈接到正確的庫。找不到架構i386錯誤的符號iOS

此外,當代碼在不同的項目中運行時,該代碼可以正常工作。從本質上講,我製作了一個應用程序的各個部分,並且在讓所有人一起工作時遇到了這個問題。這兩個應用程序之間的一切都是相同唯一真正的區別是,我正在運行它與一個核心代碼,所以我不知道這與它有什麼關係?

錯誤發生是因爲TFHipple元素。以下是錯誤的副本:

Ld /Users/jyurcho/Library/Developer/Xcode/DerivedData/PennStateStrengthandFitness-epmdweltrbdxujcyuhctckzwibzv/Build/Products/Debug-iphonesimulator/PennStateStrengthandFitness.app/PennStateStrengthandFitness normal i386 
cd /Users/jyurcho/Desktop/Testing/PennStateStrengthandFitness 
setenv IPHONEOS_DEPLOYMENT_TARGET 6.1 
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr /bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -L/Users/jyurcho/Library/Developer/Xcode/DerivedData/PennStateStrengthandFitness-epmdweltrbdxujcyuhctckzwibzv/Build/Products/Debug-iphonesimulator -L/Users/jyurcho/Desktop/Testing/PennStateStrengthandFitness -F/Users/jyurcho/Library/Developer/Xcode/DerivedData/PennStateStrengthandFitness-epmdweltrbdxujcyuhctckzwibzv/Build/Products/Debug-iphonesimulator -filelist /Users/jyurcho/Library/Developer/Xcode/DerivedData/PennStateStrengthandFitness-epmdweltrbdxujcyuhctckzwibzv/Build/Intermediates/PennStateStrengthandFitness.build/Debug-iphonesimulator/PennStateStrengthandFitness.build/Objects-normal/i386/PennStateStrengthandFitness.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -all_load -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -lxml2 -framework QuartzCore -framework UIKit -framework Foundation -framework CoreGraphics -lCorePlot-CocoaTouch -o /Users/jyurcho/Library/Developer/Xcode/DerivedData/PennStateStrengthandFitness-epmdweltrbdxujcyuhctckzwibzv/Build/Products/Debug-iphonesimulator/PennStateStrengthandFitness.app/PennStateStrengthandFitness 

Undefined symbols for architecture i386: "_OBJC_CLASS_$_TFHpple", referenced from: objc-class-ref in psuSecondViewController.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

我敢肯定,我有我需要

+1

什麼是完整的錯誤消息 - 哪個符號沒有找到? – 2013-03-10 16:42:00

+0

可能你錯過了一些框架。同意Tolley。發佈錯誤。 – 2013-03-10 17:06:00

+0

我添加了錯誤信息。我相信我擁有所有的框架,因爲程序在較小的應用程序中運行良好。 – pj409 2013-03-10 17:46:29

回答

1

檢查您的構建設置的所有框架。如果一切正確,請嘗試整個項目的清潔版本。 Xcode試圖將應用程序的模擬器構建與Core Plot的iOS設備構建相鏈接。

+1

謝謝,但我找到了答案...惠特爲我工作http://stackoverflow.com/questions/6984368/undefined-symbols-for-architecture-i386-objc-class-skpsmtpmessage-refere – pj409 2013-03-10 20:45:57

相關問題