mixpanel / mixpanel-swift

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

'MixpanelType' is not a member type of class 'Mixpanel.Mixpanel' #640

Open tiendnuit opened 6 months ago

tiendnuit commented 6 months ago

I'm trying to generate XCFramework with some modules and use Cocoapods to integrate all modules in my main app. After pod install/ pod update, I got this error when building the app 'MixpanelType' is not a member type of class 'Mixpanel.Mixpanel'. in arm64-apple-ios.private.swiftinterface file.

image

Please help me to solve this issue. Thanks!

jaredmixpanel commented 6 months ago

@tiendnuit can you please provide a sample project that reproduces the issue?

tiendnuit commented 6 months ago

Hi @jaredmixpanel , from my project I have a Core framework with some common functions and I put the Mixpanel in this framework and then installed it via cocoapods in my main project. From my investigation, seems in Mixpanel framework has a class Mixpanel with the same name as the module. You can see this link for reference. Thanks!

image

https://hackernoon.com/cocoapod-as-xcframework-with-dependencies