我想在我的swift应用中使用谷歌分析。我必须通过cocoapods安装它。我已经在使用cocoapods作为haneke库。但是haneke图书馆说“你必须放use_frameworks!
行。但是如果我把这行放到我不能通过cocoapods安装谷歌分析。我怎么解决这个?我的pod文件:
use_frameworks!
pod 'HanekeSwift'
pod 'Google/Analytics', '~> 1.0.0'
错误:
Downloading dependencies
Installing Google (1.0.7)
Installing GoogleAnalytics (3.12.0)
Installing GoogleNetworkingUtilities (1.0.0)
Installing GoogleSymbolUtilities (1.0.0)
Installing GoogleUtilities (1.0.1)
Using HanekeSwift (0.9.1)
[!] The 'Pods' target has transitive dependencies that include static binaries: (/Users/tolgaytoklar/Documents/Ribony/Pods/GoogleNetworkingUtilities/Libraries/libGTMSessionFetcher_full.a, /Users/tolgaytoklar/Documents/Ribony/Pods/GoogleNetworkingUtilities/Libraries/libGTMSessionFetcher_core.a, /Users/tolgaytoklar/Documents/Ribony/Pods/GoogleSymbolUtilities/Libraries/libGSDK_Overload.a, /Users/tolgaytoklar/Documents/Ribony/Pods/GoogleUtilities/Libraries/libGTM_iPhone.a, /Users/tolgaytoklar/Documents/Ribony/Pods/GoogleUtilities/Libraries/libGTM_core.a, /Users/tolgaytoklar/Documents/Ribony/Pods/GoogleUtilities/Libraries/libGTM_UIFont+LineHeight.a, /Users/tolgaytoklar/Documents/Ribony/Pods/GoogleUtilities/Libraries/libGTM_SystemVersion.a, /Users/tolgaytoklar/Documents/Ribony/Pods/GoogleUtilities/Libraries/libGTM_StringEncoding.a, /Users/tolgaytoklar/Documents/Ribony/Pods/GoogleUtilities/Libraries/libGTM_RoundedRectPath.a, /Users/tolgaytoklar/Documents/Ribony/Pods/GoogleUtilities/Libraries/libGTM_Regex.a, /Users/tolgaytoklar/Documents/Ribony/Pods/GoogleUtilities/Libraries/libGTM_NSStringXML.a, /Users/tolgaytoklar/Documents/Ribony/Pods/GoogleUtilities/Libraries/libGTM_NSStringHTML.a, /Users/tolgaytoklar/Documents/Ribony/Pods/GoogleUtilities/Libraries/libGTM_NSScannerJSON.a, /Users/tolgaytoklar/Documents/Ribony/Pods/GoogleUtilities/Libraries/libGTM_NSDictionary+URLArguments.a, /Users/tolgaytoklar/Documents/Ribony/Pods/GoogleUtilities/Libraries/libGTM_KVO.a, /Users/tolgaytoklar/Documents/Ribony/Pods/GoogleUtilities/Libraries/libGTM_GTMURLBuilder.a, /Users/tolgaytoklar/Documents/Ribony/Pods/GoogleUtilities/Libraries/libGTM_DebugUtils.a, /Users/tolgaytoklar/Documents/Ribony/Pods/GoogleUtilities/Libraries/libGTM_AddressBook.a, and /Users/tolgaytoklar/Documents/Ribony/Pods/GoogleUtilities/Libraries/libGTMStackTrace.a)
我该如何解决这个问题?
https://developers.google.com/analytics/devguides/collection/ios/v3/?ver=swift
答案 0 :(得分:1)
目标为8.0并使用CocoaPods 0.37或更高版本。
对于早期版本,答案如下: GoogleAnalytics-iOS-SDK on CocoaPods 0.36 with Swift