我按照以下步骤将AdMob集成到我的iOS应用程序中,一切正常,但我有一个致命的错误(所以我猜有些事情不行)
以下是信息:
Ld /Library/Developer/Xcode/DerivedData/Liga_Zon_Sagres_Companion-fjlwctxjtriqrbgpjiscdoodhcgr/Build/Products/Debug-iphonesimulator/Liga\ Zon\ Sagres\ Companion.app/Liga\ Zon\ Sagres\ Companion normal x86_64
cd "/Users/bertobettencourt/Desktop/LIVE RELEASES/Liga Zon Sagres (iOS)/1.30"
export IPHONEOS_DEPLOYMENT_TARGET=6.0
export 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 x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -L/Users/bertobettencourt/Library/Developer/Xcode/DerivedData/Liga_Zon_Sagres_Companion-fjlwctxjtriqrbgpjiscdoodhcgr/Build/Products/Debug-iphonesimulator -L/Users/bertobettencourt/Desktop/LIVE\ RELEASES/Liga\ Zon\ Sagres\ (iOS)/1.30/Liga\ Zon\ Sagres\ Companion/Flurry\ iPhone\ SDK\ viPhone\ 4/Flurry-iOS-4.4.0/Flurry -L/Users/bertobettencourt/Desktop/LIVE\ RELEASES/Liga\ Zon\ Sagres\ (iOS)/1.30/Liga\ Zon\ Sagres\ Companion/Flurry\ iPhone\ SDK\ viPhone\ 4/Flurry-iOS-4.4.0/FlurryAds -F/Users/bertobettencourt/Library/Developer/Xcode/DerivedData/Liga_Zon_Sagres_Companion-fjlwctxjtriqrbgpjiscdoodhcgr/Build/Products/Debug-iphonesimulator -filelist /Users/bertobettencourt/Library/Developer/Xcode/DerivedData/Liga_Zon_Sagres_Companion-fjlwctxjtriqrbgpjiscdoodhcgr/Build/Intermediates/Liga\ Zon\ Sagres\ Companion.build/Debug-iphonesimulator/Liga\ Zon\ Sagres\ Companion.build/Objects-normal/x86_64/Liga\ Zon\ Sagres\ Companion.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.0 -framework AudioToolbox -framework MessageUI -lFlurry_4.4.0 -framework SystemConfiguration -framework StoreKit -framework CoreData -framework AdSupport -lFlurryAds_4.4.0 -lGoogleAdMobAds -framework iAd -framework CoreGraphics -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/bertobettencourt/Library/Developer/Xcode/DerivedData/Liga_Zon_Sagres_Companion-fjlwctxjtriqrbgpjiscdoodhcgr/Build/Intermediates/Liga\ Zon\ Sagres\ Companion.build/Debug-iphonesimulator/Liga\ Zon\ Sagres\ Companion.build/Objects-normal/x86_64/Liga\ Zon\ Sagres\ Companion_dependency_info.dat -o /Users/bertobettencourt/Library/Developer/Xcode/DerivedData/Liga_Zon_Sagres_Companion-fjlwctxjtriqrbgpjiscdoodhcgr/Build/Products/Debug-iphonesimulator/Liga\ Zon\ Sagres\ Companion.app/Liga\ Zon\ Sagres\ Companion
ld: library not found for -lGoogleAdMobAds
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我是iOS的新手我不知道是什么导致这个,似乎我错过了这个库,我知道哪里可以找到它,我该如何解决这个问题?
谢谢。
答案 0 :(得分:5)
您可以在此处查看我的so post
转到Project Navigator并找到libGoogleAdMobAds.a
。只需选择它,然后在Target Membership
的右侧即可获得目标。只需取消选择已选择的目标,然后再选择它们。
它可能对你有帮助。
答案 1 :(得分:1)
您可以通过转到项目经理页面(在左侧的文件浏览器选项卡中单击蓝色Xcode项目根目录(本例中为“iPhone Test”))将库添加到项目中,在General下您应该看到'图书馆'部分。如果您没有图书馆(我假设您这样做),可以从谷歌的网站上下载。