gpt4 book ai didi

ios - 在 iOS 应用程序中添加 Admob 时构建错误

转载 作者:行者123 更新时间:2023-11-29 11:01:40 26 4
gpt4 key购买 nike

我在这里尝试了很多源代码和很多问题,但没有一个解决方案适合我。当我尝试将 admob 添加到现有项目时,我在 Xcode 中遇到以下错误,请查看屏幕截图:

error build

我拥有所有框架,例如商店套件和其他框架。看第二张截图:

enter image description here

我添加 iAd 网络没有任何问题,但我无法添加 admob。请帮忙

如果图像不清晰,请在此处查看错误文本:

ld: warning: directory not found for option '-L/Users/hussainbarakat/Desktop/ARSSReader21-1-2013 copy1/../../Documents/GoogleAdMobAdsSdkiOS-6.3.0/Add-ons/GoogleAnalyticsiOS_2.0beta4/Library' ld: warning: directory not found for option '-L/Users/hussainbarakat/Desktop/ARSSReader21-1-2013 copy1/../../Documents/GoogleAdMobAdsSdkiOS-6.3.0' ld: warning: ignoring file /Users/hussainbarakat/Desktop/ARSSReader21-1-2013 copy1/StoreKit.framework/StoreKit, missing required architecture i386 in file /Users/hussainbarakat/Desktop/ARSSReader21-1-2013 copy1/StoreKit.framework/StoreKit (2 slices) Undefined symbols for architecture i386: "_OBJC_CLASS_$_SKStoreProductViewController", referenced from: objc-class-ref in libGoogleAdMobAds.a(GADOpener.o) "_SKStoreProductParameterITunesItemIdentifier", referenced from: -[GADOpener openInAppStore:fallbackURLString:] in libGoogleAdMobAds.a(GADOpener.o) ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

最佳答案

终于找到解决办法了!!问题出在 Storekit Framework 上,我从上次将这个框架拖到我的项目中,所以当我删除这个框架,然后从 build setting > Build phases 再次添加它,然后添加 StoreKit frame work,错误就消失了.

关于ios - 在 iOS 应用程序中添加 Admob 时构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15642180/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com