Ios 添加GoogleMobileAds后未找到-lPods的库

Ios 添加GoogleMobileAds后未找到-lPods的库,ios,admob,lpod,Ios,Admob,Lpod,这是我的pod文件 # Uncomment the next line to define a global platform for your project platform :ios, '9.0' target 'App FM' do # Uncomment the next line if you're using Swift or would like to use dynamic frameworks # use_frameworks! pod 'Google-Mobile-

这是我的
pod
文件

# Uncomment the next line to define a global platform for your project
platform :ios, '9.0'

target 'App FM' do # Uncomment the next line if you're using Swift or would like to use dynamic frameworks

# use_frameworks!
  pod 'Google-Mobile-Ads-SDK'
  # Pods for App FM


end
但我在构建项目时遇到了这个错误

ld:找不到-lPods应用程序FM的库 叮当声:错误:链接器命令失败,退出代码为1(使用-v查看调用)


我已经打开了工作区文件而不是项目文件

首先在您的工作区中转到您的应用程序FM目标
项目->应用程序FM->构建阶段->将二进制文件链接到库
检查是否添加了您的have Pods App FM.framework

也很难,但你应该让你的目标名称
AppFM
而不是
App FM
,这是一个小工作,但你的目标名称中的空格可能会使cocoapod脱落


您的appname仍然可以是App FM,但选择带有空格的目标名称不是一个好做法。将其更改为AppFM

您使用的是Swift还是Objective-C?另外,我从未见过动态框架,我使用的是onjective\u cIm不确定那是什么。当我添加google admob sdktry来删除你的
podfile.lock
pods
目录,然后删除你的podfile中的
dynamic frameworks
行,然后执行
pod安装
让我们看看发生了什么对不起,这行被注释了。我重新安装了它。但我还是得到了一个错误:(运气不好