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 :(得分:5)
Build target中缺少您的类。我不知道你的项目结构和文件,但它看起来像缺少GADBannerView和GADRequest类。
从项目中删除这些文件。再次添加它们并记得选中“添加到目标”复选框。
答案 1 :(得分:2)
将libGoogleAdMobAds.a
添加到Linked Frameworks and Libraries
。
答案 2 :(得分:1)
此错误表明您尚未添加GADBannerView和GADRequest类。
请按照以下步骤进行检查:
在XCode中在Target Section中选择你的Project然后切换到BuildPhases-> CompileSources
这里检查GADBannerView.m和GADRequest.m文件。
XCode->目标部分中的项目 - > BuildPhases-> CompileSources
希望这会对你有所帮助。