找不到框架GoogleMobileAds

时间:2019-10-13 14:22:21

标签: ios swift xcode

我有一个iOS应用程序,已经在App Store上运行了大约6个月,并且一切正常。但是,当我将Xcode更新为11.1时,出现了错误。

我遇到这种错误

  

找不到框架GoogleMobileAds

这是我在Xcode中收到的错误消息。

  

Ld /Users/puttemac/Library/Developer/Xcode/DerivedData/MyDogwalk-eiogfpjopcpzxaalyodbyllsajwn/Build/Products/Debug-iphoneos/MyDogwalk.app/MyDogwalk常规arm64(位于项目“ MyDogwalk”中的目标“ MyDogwalk”中)       cd /用户/ puttemac /桌面/ MyDogwalk-ios / MyDogwalk       /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target arm64-apple-ios11.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/开发人员/SDK/iPhoneOS13.1.sdk -L /用户/ puttemac /库/开发人员/ Xcode / DerivedData / MyDogwalk-eiogfpjopcpzxaalyodbyllsajwn / Build / Products / Debug-iphoneos -F / Users / puttemac / Library / Developer / Xcode / DerivedData MyDogwalk-eiogfpjopcpzxaalyodbyllsajwn / Build /产品/ Debug-iphoneos -F / Users / puttemac / Library / Developer / Xcode / DerivedData / MyDogwalk-eiogfpjopcpzxaalyodbyllsajwn / Build / Products / Debug-iphoneos / BoringSSL-Gary开发人员/ Xcode / DerivedData / MyDogwalk-eiogfpjopcpzxaalyodbyllsajwn / Build /产品/ Debug-iphoneos / FirebaseAuth -F / Users / puttemac / Library / Developer / Xcode / DerivedData / MyDogwalk-eiogfpjopcpzxaalyodbyllsajwn / Build / Products用户/ puttemac /库/开发人员/ Xcode / DerivedData / MyDogwalk-eiogfpjopcpzxaalyodbyllsajwn /构建/产品/ De bug-iphoneos / FirebaseCoreDiagnostics -F /用户/ puttemac /库/开发人员/ Xcode / DerivedData / MyDogwalk-eiogfpjopcpzxaalyodbyllsajwn / Build / Products / Debug-iphoneos / FirebaseDatabase -F / Users / puttemac / Library / Developer / Xcode / Derived eiogfpjopcpzxaalyodbyllsajwn / Build / Products / Debug-iphoneos / FirebaseFirestore -F / Users / puttemac / Library / Developer / Xcode / DerivedData / MyDogwalk-eiogfpjopcpzxaalyodbyllsajwn / Build / Products / Debug-iphoneos / Macs / FireBaseID Xcode / DerivedData / MyDogwalk-eiogfpjopcpzxaalyodbyllsajwn / Build / Products / Debug-iphoneos / FirebaseStorage -F / Users / puttemac / Library / Developer / Xcode / DerivedData / MyDogwalk-eiogfpjopcpzxaalyodbyssajwn / Build / Users / Build / Products puttemac /库/开发人员/ Xcode / DerivedData / MyDogwalk-eiogfpjopcpzxaalyodbyllsajwn / Build / Products / Debug-iphoneos / GoogleDataTransport -F / Users / puttemac / Library / Developer / Xcode / DerivedData / MyDogwalk-eiogfpjobybycpsxaa oneos / GoogleDataTransportCCTSupport -F / Users / puttemac / Library / Developer / Xcode / DerivedData / MyDogwalk-eiogfpjopcpzxaalyodbyllsajwn / Build / Products / Debug-iphoneos / GoogleUtilities -F / Users / puttemac / Library / Developer / Xcode / Derivedly / Xcode / DerivedData构建/产品/ Debug-iphoneos / Kingfisher -F /用户/ puttemac /库/开发人员/ Xcode / DerivedData / MyDogwalk-eiogfpjopcpzxaalyodbyllsajwn /构建/产品/ Debug-iphoneos / Protobuf -F /用户/ puttemac /库/库/开发人员/ X DerivedData / MyDogwalk-eiogfpjopcpzxaalyodbyllsajwn / Build / Products / Debug-iphoneos / gRPC-C ++ -F / Users / puttemac / Library / Developer / Xcode / DerivedData / MyDogwalk-eiogfpjopcpzxaalyodbyllssajwn / Build / Phones / Cores用户/ puttemac /库/开发人员/ Xcode / DerivedData / MyDogwalk-eiogfpjopcpzxaalyodbyllsajwn / Build / Products / Debug-iphoneos / leveldb-library -F / Users / puttemac / Library / Developer / Xcode / DerivedData / MyDogwalk-eiogflypjop调试iphoneos / nanopb -F /用户/ puttemac /桌面/ MyDogwalk-ios / MyDogwalk / Pods / FirebaseAnalytics / Framework -F / Users / puttemac / Desktop / MyDogwalk-ios / MyDogwalk / Pods / Google-Mobile-Ads-SDK / Frameworks / GoogleMobileAdsFramework-Current -F / Users / puttemac / Desktop / MyDogwalk-ios / MyDogwalk / Pods / GoogleAppMeasurement / Frameworks -filelist /Users/puttemac/Library/Developer/Xcode/DerivedData/MyDogwalk-eiogfpjopcpzxaalyodbyllsajwn/Build/Intermediates.noindex/MyDogwalk.build/Debug-iphoneos/MyDogwalk-ios -normal / arm64 / MyDogwalk.LinkFileList -Xlinker -rpath -Xlinker / usr / lib / swift -Xlinker -rpath -Xlinker @ executable_path / Frameworks -Xlinker -rpath -Xlinker @ loader_path / Frameworks -Xlinker -rpath -Xlinker @ executable_path / Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/puttemac/Library/Developer/Xcode/DerivedData/MyDogwalk-eiogfpjopcpzxaalyodbyllsajwn/Build/Intermediates.noindex/MyDogwalk.build/Debug-iphoneos/MyDogwalk.build/Object .o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fembed-bitcode-ma rker -fobjc-link-runtime -L / Applications / Xcode.app / Contents / Developer / Toolchains / XcodeDefault.xctoolchain / usr / lib / swift / iphoneos -L / usr / lib / swift -Xlinker -add_ast_path -Xlinker / Users / puttemac /库/开发人员/Xcode/DerivedData/MyDogwalk-eiogfpjopcpzxaalyodbyllsajwn/Build/Intermediates.noindex/MyDogwalk.build/Debug-iphoneos/MyDogwalk.build/Objects-normal/arm64/MyDogwalk.swiftmodule -Obcore3 -lc ++ lz -framework AVFoundation -framework加速-framework AudioToolbox -framework CFNetwork -framework CoreGraphics -framework CoreMedia -framework CoreTelephony -framework CoreVideo -framework FIRAnalyticsConnector -framework FirebaseAnalytics -framework FirebaseAuth -framework FirebaseCore -framework FirebaseDiagnostics -framework FirebaseDatabase -framework框架FirebaseStorage-框架Foundation-框架GTMSessionFetcher-框架GoogleAppMeasurement-框架GoogleDataTransport-框架GoogleDataT ransportCCTSupport -framework GoogleMobileAds -framework GoogleUtilities -framework Kingfisher -framework MediaPlayer -framework MessageUI -framework MobileCoreServices -framework QuartzCore -framework SafariServices -framework Security -framework StoreKit -framework SystemConfiguration -framework UIKit -framework grpc -framegrpcpp -frameworkbdb -framework框架openssl_grpc-框架protobuf -weak_framework AdSupport -weak_framework JavaScriptCore -weak_framework SafariServices -weak_framework WebKit -framework Pods_MyDogwalk -framework StoreKit -Xlinker -dependency_info -Xlinker / Users / puttemac / Library / Developer / Xog / Pyz / Phog / Jedby / Efly / Xcode / DerivedData。 noindex / MyDogwalk.build / Debug-iphoneos / MyDogwalk.build / Objects-normal / arm64 / MyDogwalk_dependency_info.dat -o / Users / puttemac / Library / Developer / Xcode / DerivedData / MyDogwalk-eiogfpjopcpzxaalyodbyllsajwn / Build / Products / oss MyDogwalk.app/MyDogwalk

我尝试了什么?

  • 我已经重新安装了CocoaPods
  • 我已经重新安装了GoogleMobileAds pod 100次。
  • 我已经下载了最新的GoogleService-info.plist

重新安装GoogleMobileAds之后,一切正常。但是,一旦我重新启动Xcode / MacBook,它又全部消失了。并且出现了相同的错误。

注意:如果我单击“常规”选项卡并向下滚动到“框架”,“库”和“嵌入式内容”,并尝试向其中添加GoogleAdMob,则找不到它。

如何解决此错误?为何会出现?

2 个答案:

答案 0 :(得分:1)

您可能要删除DerivedData文件夹(Xcode会重新创建它)。

答案 1 :(得分:0)

您要安装什么版本的GoogleMobile广告?在release note中,对iOS 13的支持始于7.50.0。

还要确保您使用的是最新的CocoaPods版本。