mixpanel / mixpanel-swift

Official iOS (Swift) Tracking Library for Mixpanel Analytics
https://mixpanel.com
Apache License 2.0
434 stars 234 forks source link

Unable to use Mixpanel-swift SPM package in WatchKit Extension #484

Closed dbyst closed 2 years ago

dbyst commented 2 years ago

Hi.

I would like to use Mixpanel on both iOS target and WatchKit Extension target.

It works fine with Cocoapods.

But I would like to use SPM. And with SPM I have problems. SPM package doesn't work fine in WatchKit Extension target. Because project contains .xib files. During project compile time I'm receiving next errors:

Screenshot 2021-11-03 at 12 42 09 Screenshot 2021-11-03 at 12 49 21
zihejia commented 2 years ago

hi @dbyst , it is supported in 3.0.0.beta, 3.0.0.beta.5 is in parity with v2.10.3 just without the Messages & Experiments feature supports. on Jan 1, 2022, we’ll remove the Messages & Experiments feature from Mixpanel(more details) and release 3.0.0. We have no plan to fix the SPM for WatchKit in 2.x.x. Sorry about the inconvenience.

dbyst commented 2 years ago

Fixed. Thank you