我正在尝试将 Flurry Analytics 集成到我的 Apple Watch 应用程序中。我的应用是没有 iPhone 伴侣的独立应用。我在 Yahoo Developer 上看到了一篇文章,其中给出了相关说明,但它现在已经 5 年多了。我遵循了那篇文章中的所有说明,除了对 podfile 进行了一些修改。这是我的代码
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'Watch Idle Game' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
pod ‘Flurry-iOS-SDK/FlurryWatchOSSDK’
pod ‘Flurry-iOS-SDK/FlurrySDK'
platform :watchos, ‘7.2’
end
target 'Watch Idle Game WatchKit App' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
pod ‘Flurry-iOS-SDK/FlurryWatchOSSDK’
pod ‘Flurry-iOS-SDK/FlurrySDK'
platform :watchos, ‘7.2’
# Pods for Watch Idle Game WatchKit App
end
target 'Watch Idle Game WatchKit Extension' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
pod ‘Flurry-iOS-SDK/FlurryWatchOSSDK’
pod ‘Flurry-iOS-SDK/FlurrySDK'
platform :watchos, ‘7.2’
end
在尝试了这个之后,Xcode 说 Flurry Analytics 模块仍然不存在。我想知道,Flurry Analytics 甚至可以在独立的 Apple Watch 应用程序上运行吗?