ios - 适用于 iOS 的 AdMob 错误 : Llibrary not found for -lGoogleAdMobAds

标签 ios iphone objective-c xcode admob

我按照步骤为我的 iOS 应用程序集成 AdMob,一切正常,但我有一个 fatal error (所以我猜有些地方不对)

消息如下:

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 的新手,我不知道是什么原因造成的,似乎我缺少库,知道在哪里可以找到它以及如何解决问题吗?

谢谢。

最佳答案

你可以查看我的so post这里

转到 Project Navigator 并找到 libGoogleAdMobAds.a。只需选择它,然后在 Target Membership 的右侧,您将获得您的目标。只需取消选择已选择的目标,然后再次选择它们。

For more help you can refer this image

它可能对你有帮助。

关于ios - 适用于 iOS 的 AdMob 错误 : Llibrary not found for -lGoogleAdMobAds,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22799186/

相关文章:

ios - NSKeyedArchiver 继承自 NSCoder 为什么会存在 NSKeyedUnarchiver?

ios - 自定义颜色我的 UIActivityIndi​​catorView

ios - 使用 NSURLSession 进行单元测试

iphone - iOS 获取 subview 的旋转

ios - 允许在 UISplitViewController 之间切换吗?

iphone - 因启动时崩溃而被拒绝

jQuery 'document' 、 'body' 和 'html' 选择器在 iPhone 上不起作用

objective-c - 将数据从 Viewcontroller 传递到 Label

ios - Touch ID 崩溃问题

ios - 自定义 map 注释