2013-06-21 71 views
0
Ld /Users/michaelsonsamuels/Library/Developer/Xcode/DerivedData/Video-hedtrampxpseetfcmcksycqvmpuk/Build/Products/Debug-iphonesimulator/Video.app/Video normal i386 
    cd "/Users/michaelsonsamuels/Desktop/Xcode /Video" 
    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/michaelsonsamuels/Library/Developer/Xcode/DerivedData/Video-hedtrampxpseetfcmcksycqvmpuk/Build/Products/Debug-iphonesimulator -F/Users/michaelsonsamuels/Library/Developer/Xcode/DerivedData/Video-hedtrampxpseetfcmcksycqvmpuk/Build/Products/Debug-iphonesimulator -filelist /Users/michaelsonsamuels/Library/Developer/Xcode/DerivedData/Video-hedtrampxpseetfcmcksycqvmpuk/Build/Intermediates/Video.build/Debug-iphonesimulator/Video.build/Objects-normal/i386/Video.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -framework StoreKit -framework AudioToolbox -framework MessageUI -framework SystemConfiguration -framework CoreGraphics -framework UIKit -framework Foundation -o /Users/michaelsonsamuels/Library/Developer/Xcode/DerivedData/Video-hedtrampxpseetfcmcksycqvmpuk/Build/Products/Debug-iphonesimulator/Video.app/Video 

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

Ld /Users/michaelsonsamuels/Library/Developer/Xcode/DerivedData/Video-hedtrampxpseetfcmcksycqvmpuk/Build/Products/Debug-iphonesimulator/Video.app/Video normal i386 
    cd "/Users/michaelsonsamuels/Desktop/Xcode /Video" 
    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/michaelsonsamuels/Library/Developer/Xcode/DerivedData/Video-hedtrampxpseetfcmcksycqvmpuk/Build/Products/Debug-iphonesimulator -F/Users/michaelsonsamuels/Library/Developer/Xcode/DerivedData/Video-hedtrampxpseetfcmcksycqvmpuk/Build/Products/Debug-iphonesimulator -filelist /Users/michaelsonsamuels/Library/Developer/Xcode/DerivedData/Video-hedtrampxpseetfcmcksycqvmpuk/Build/Intermediates/Video.build/Debug-iphonesimulator/Video.build/Objects-normal/i386/Video.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -framework StoreKit -framework AudioToolbox -framework MessageUI -framework SystemConfiguration -framework CoreGraphics -framework UIKit -framework Foundation -o /Users/michaelsonsamuels/Library/Developer/Xcode/DerivedData/Video-hedtrampxpseetfcmcksycqvmpuk/Build/Products/Debug-iphonesimulator/Video.app/Video 

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

    "_OBJC_CLASS_$_GADBannerView", referenced from: 


     objc-class-ref in ViewController.o 


    "_OBJC_CLASS_$_GADRequest", referenced from: 


     objc-class-ref in ViewController.o 


    "_kGADAdSizeBanner", referenced from: 


     -[ViewController viewDidLoad] in ViewController.o 


ld: symbol(s) not found for architecture i386 


clang: error: linker command failed with exit code 1 (use -v to see invocation) 

謝謝。錯誤是什麼意思?

+0

你試過做什麼?如果你沒有提出這個問題,我們如何找到解決方案? – manujmv

+0

您是否添加了最新的Google Admob框架?請谷歌:).... – IronManGill

+0

是的,我從Admob下載了最新的框架...順便說一句,我只是試着在單一視圖顯示應用程序的底端顯示一個橫幅,沒有代碼在它.... –

回答

5

您的類從構建目標中丟失。我不知道你的項目結構和文件,但它看起來像缺少GADBannerView和GADRequest類。

從您的項目中刪除這些文件。再次添加它們並記住選中「ADD TO TARGET」複選框。

+0

嗨thanx嘗試了它,但力量工作。它被添加到目標中,在我的項目中有一個Admob SDK的副本。 –

2

libGoogleAdMobAds.a添加到Linked Frameworks and Libraries

1

這個錯誤表明你還沒有添加GADBannerView和GADRequest類。

請按照此操作的步驟檢查:

XCode中選擇目標的部分項目,然後切換到BuildPhases-> CompileSources

這裏檢查GADBannerView.m和GADRequest.m文件。

XCode->您在目標中─> BuildPhases-> CompileSources

希望這將幫助你計劃。

+0

感謝Gadbannervew及其課程已全部添加:)我dint添加廣告框架,它做了伎倆感謝:) –