【问题标题】:Can Mixpanel be used natively on watchOS 2.0?可以在 watchOS 2.0 上原生使用 Mixpanel 吗?
【发布时间】:2015-09-16 22:32:08
【问题描述】:

我有一个 watchOS 2.0 应用程序,我想用它在 Mixpanel 中跟踪事件。我正在使用 Mixpanel 吊舱version 2.8.3。在较早的版本中,他们引入了对 App Extensions 的支持,包括 WatchKit。

我的 podfile 如下所示:

target 'Elevate', :exclusive => true do
 platform :ios, '8.0'
 ...
 pod 'Mixpanel', '~> 2.8.3'
 ...
end

target 'Dash 2 Extension', :exclusive => true do
 platform :watchos, '2.0'
 xcodeproj 'griffin.xcodeproj'
 pod 'Mixpanel/AppExtension"
end

但是 Xcode 说 it doesn't contain platform 'watchsimulator' in its SUPPORTED_PLATFORMS 'iphonesimulator, iphoneos'

【问题讨论】:

    标签: ios cocoapods ios-app-extension mixpanel watchos-2


    【解决方案1】:

    在尝试 fork mixpanel-iphone 并亲自添加对 watchOS 2 的支持 as described by Cocoapods 之后,我认为这不值得。他们对 UIKit 有太多的依赖。

    相反,我打算使用 WatchConnectivity 将每个事件的消息发送到我的 iPhone 应用程序,然后从 iPhone 应用程序跟踪事件。

    我希望 Mixpanel 尽快添加对 watchOS 2 的原生支持。

    【讨论】:

      猜你喜欢
      • 2020-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-30
      • 2015-09-06
      • 2010-12-12
      • 1970-01-01
      • 2015-09-20
      • 2015-09-26
      相关资源
      最近更新 更多