Admob导致链接器命令失败,退出代码1错误

时间:2016-09-25 09:28:09

标签: ios xcode admob

我的iOS应用程序能够在模拟器上正常运行,但当我尝试存档时,我收到以下错误。

ld: library not found for -lPods-MOEDict-Google-Mobile-Ads-SDK
clang: error: linker command failed with exit code 1 (use -v to see invocation)

这是我的其他链接器标志:

    -ObjC -l"Pods-MOEDict-Google-Mobile-Ads-SDK" -framework "AVFoundation" 
    -framework "AudioToolbox" -framework "CoreGraphics" -framework "CoreTelephony" -framework "EventKit" -framework "EventKitUI" 
-framework "GoogleMobileAds" -framework "MessageUI" -framework "StoreKit" -framework "SystemConfiguration" -weak_framework "AdSupport" $(inherited)

2 个答案:

答案 0 :(得分:3)

我自己解决了问题我删除了整个other linker flags并将其替换为$(inherited)

答案 1 :(得分:1)

如果您使用的是cocoapods,请不要手动管理pod。

尝试运行以下命令:

// Removes every trace of cocoapods from the xcode project
pod deintegrate
// Reinstalls and links cocoapods (probably gonna fix the missing framework)
pod install