无法导入 pod Google/Analytics 的框架目标

Cannot import framework target that pod Google/Analytics

在我的项目中,我有一个名为 'Util' 的框架。我想在该框架中创建一个 'AnalyticHelper.swift' 。所以我 pod 'Google/Analytics' 到 'Util' 目标。

这是我的播客文件

platform :ios, '8.0' 
use_frameworks!

target 'GoogleAnalyticProb' do    
end

target 'Util' do   
    pod 'Google/Analytics'
end

然后我import Google在AnalyticHelper.swift

问题是当我想在我的主要目标中使用 AnalyticHelper 时。我需要 import Util,XCode 说 Missing required module 'Google'

知道如何解决这个问题吗?

这是我的示例项目。您可以在 AppDelegate 文件中看到错误。 https://github.com/ppakorn/GoogleAnalyticProblem

我已经尝试 pod Google/Analytics 到主要目标来消除错误,我收到了很多警告。

objc[37380]: Class GGLClearcutWriter is implemented in both /Users/Pakorn/Library/Developer/Xcode/DerivedData/BlueCrystal-cqptfbgzlujlfdcblsfabrkdwnrp/Build/Products/Dev-iphonesimulator/Utilities.framework/Utilities and /Users/Pakorn/Library/Developer/CoreSimulator/Devices/9069CB2D-4D55-44CB-BB09-04653BAE6AAD/data/Containers/Bundle/Application/AF714244-7C71-4252-86E2-D049EC39D765/BlueCrystal.app/BlueCrystal. One of the two will be used. Which one is undefined.

我最终将 SDK 直接导入到框架中,而不是使用 Pod。