简体   繁体   English

构建依赖于GoogleAnalytics-iOS-SDK的Cocoapod验证失败

[英]Building a Cocoapod with dependency on GoogleAnalytics-iOS-SDK fails validation

Thanks for you help in advance, 谢谢您的帮助

I am see linker errors when creating a private cocoapod with a dependancy on GoogleAnalytics-iOS-SDK. 创建依赖于GoogleAnalytics-iOS-SDK的私有cocoapod时,我看到链接器错误。

The relevant section of the podspec is: podspec的相关部分是:

s.dependency 'GoogleAnalytics-iOS-SDK', '3.10'

Projects which include my pod build and run, just the linter fails. 包括我的pod生成和运行的项目,只是linter失败了。 Meaning I can't push the pod to my repo. 这意味着我无法将吊舱推入我的仓库。

pod lib lint --verbose
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_GAI", referenced from:
      objc-class-ref in Test.o
Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_GAI", referenced from:
      objc-class-ref in Test.o

What is causing this linker error? 是什么导致此链接器错误? How do I work around it? 我该如何解决?

I've successfully added this dependency by adding the platform limit with this instruction in the podspec of your private library to limit to iOS devices only : 我已通过在私有库的podspec中将此指令添加平台限制以仅限于iOS设备来成功添加此依赖项:

Pod::Spec.new do |m|
    ...
    m.platform = :ios, "7.0"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Swift的CocoaPods 0.36上的GoogleAnalytics-iOS-SDK - GoogleAnalytics-iOS-SDK on CocoaPods 0.36 with Swift 我们应该使用哪个Pod代替GoogleAnalytics-iOS-SDK? - Which pod should we use instead of GoogleAnalytics-iOS-SDK? 无法使用Cocoapods 0.37,Swift,框架找到GoogleAnalytics-iOS-SDK的标题 - Can't find headers for GoogleAnalytics-iOS-SDK with Cocoapods 0.37, Swift, frameworks Cocoapod-创建具有另一个cocoapod依赖关系的新cocoapod失败 - Cocoapod - Creating a new cocoapod with a dependency of another cocoapod fails GoogleAnalytics iOS SDK中AppView和ScreenView之间的差异 - Differences between AppView and ScreenView in GoogleAnalytics iOS SDK 屏幕发送不适用于GoogleAnalytics iOS SDK 3.11 - Screen sending is not working with GoogleAnalytics iOS SDK 3.11 GoogleAnalytics Cocoapod未解析的标识符“ GGLContext” - GoogleAnalytics Cocoapod unresolved identifier 'GGLContext' 不使用 CocoaPod 安装 iOS Facebook SDK - Installing iOS Facebook SDK without using CocoaPod GoogleMaps SDK iOS安装出现Cocoapod错误 - GoogleMaps SDK ios install with Cocoapod error AWS Mobile iOS SDK无法正确构建AWSCognitoSyncService(失败) - AWS Mobile iOS SDK not building AWSCognitoSyncService correctly (fails)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM