Ios 如何向CoCoapod添加依赖项
我正在尝试创建一个Cocoapods库。我的库将包含谷歌移动广告SDK作为依赖项。我使用了以下命令Ios 如何向CoCoapod添加依赖项,ios,cocoapods,Ios,Cocoapods,我正在尝试创建一个Cocoapods库。我的库将包含谷歌移动广告SDK作为依赖项。我使用了以下命令 pod lib create BannerViewController > my email address What language do you want to use?? [ ObjC / Swift ] > Swift Would you like to include a demo application with your library? [ Yes / No ]
pod lib create BannerViewController
> my email address
What language do you want to use?? [ ObjC / Swift ]
> Swift
Would you like to include a demo application with your library? [ Yes / No ]
> Yes
Which testing frameworks will you use? [ Quick / None ]
> None
Would you like to do view based testing? [ Yes / No ]
> No
然后我编辑了BannerViewController.podspec,添加了以下行
s.dependency 'Google-Mobile-Ads-SDK', '~> 7.0'
我试图使用pod lib lint BannerViewController.podspec
[!] BannerViewController did not pass validation, due to 1 error and 3 warnings.
You can use the `--no-clean` option to inspect any issue.
我试图在示例目录中进行pod更新,但出现以下错误
[!] The 'Pods-BannerViewController_Example' target has transitive dependencies that include static binaries: (/Developer/BannerViewController/Example/Pods/Google-Mobile-Ads-SDK/GoogleMobileAdsSdkiOS-7.4.0/GoogleMobileAds.framework)
我不知道如何将谷歌移动广告SDK添加到我的开发平台中,以便在本地测试我的代码。Cocoapods文档不清楚。我正在使用Cocoapods 0.38.2使用
pod lib lint BannerViewController.podspec--使用库