2013-06-21 3 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

무엇을하려고 했습니까? u가 질문에 그것을 제공하지 않았다면 어떻게 솔루션을 찾을 수 있습니까? – manujmv

+0

최신 Google Admob의 프레임 워크를 추가 했습니까? 제발 .... Google ....) – IronManGill

+0

그래, 내가 Admob에서 최신 프레임 워크를 다운로드 ... BTW 난 그냥 그것의 코드와 단일보기 디스플레이 애플 리케이션의 하단 끝에 배너를 표시하려고 노력하고 있습니다 .... –

답변

5

클래스가 빌드 대상에서 누락되었습니다. 프로젝트 구조 및 파일에 대해서는 알지 못하지만 GADBannerView 및 GADRequest 클래스가 누락 된 것처럼 보입니다.

프로젝트에서 이러한 파일을 제거하십시오. 그들을 다시 추가하고 "목표에 추가"체크 상자를 체크하는 것을 잊지 마십시오.

+0

안녕하세요 고맙습니다. 타겟에 추가됩니다. 내 프로젝트에는 Admob SDK 사본이 있습니다. –

2

libGoogleAdMobAds.aLinked Frameworks and Libraries에 추가하십시오.

1

이 오류는 u가 GADBannerView 및 GADRequest 클래스를 추가하지 않았 음을 보여줍니다.

이 단계를 수행하여 확인하시기 바랍니다 : 엑스 코드에서

이 대상 섹션에서 프로젝트를 선택한 다음 CompileSources

여기

GADBannerView.m 및 GADRequest.m 파일을 확인> BuildPhases-로 전환합니다. 이 당신을 도울 것입니다

희망 대상 섹션 -> BuildPhases-> CompileSources에서

는 XCode-> 귀하의 프로젝트.

+0

감사합니다 Gadbannervew 및 그 클래스는 모두 추가되었습니다 :) 어쨌든 트릭 감사 않았다 adframework 추가 dint :) –

관련 문제