-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash when integrating the xcframework that contains mixpanel #474
Comments
hi @uzair , could you share the integration code related to Mixpanel? Also, how do you integrate Mixpanel? For right now, we suggest using SPM. |
hi @uzair , I will close this issue for now. Please feel free to reopen the issue anytime you get a chance to provide more information and the problem still exists. |
Even myself facing the similar issue. We are using Cocoapods for integration
|
hi @jvigneshcs , which Mixpanel version are you using? |
I tried with 4.1.2 (latest) |
@jvigneshcs When I try to execute
Have you experimented with using the
See: https://guides.cocoapods.org/syntax/podfile.html#use_frameworks_bang |
I tried your suggestion with
when I tried with
|
@jvigneshcs Can you please provide more detailed instructions for your bare minimum project to repro this issue? I managed to get your build script to run, but the Mixpanel.xcworkspace says: And |
Nevermind, got it to work. I had to remove |
@jvigneshcs I've experimented with different build configurations. I'm able to get it building and running without crashing but I do see messages like this in the console:
In MySDK - MyAPI.swift it seems like you will need to So I do not think this is an issue with the Mixpanel SDK. I think this use case is running up against limitations in Swift/Xcode. Some further reading: Example usage in Firebase: https://github.com/firebase/firebase-ios-sdk/blob/master/FirebaseFunctions/Sources/Internal/FunctionsComponent.swift#L21-L22 |
@jvigneshcs One workaround I did find is to use the Mixpanel Objective-C SDK from MySDK instead of the Swift SDK. If however, MyApp also uses the Objective-C SDK then we're back to the |
@jaredmixpanel yeah we have already tried this approach and we didn't face the crash issue which is happening with mixpanel-swift pod. |
I have create my custom framework and integrated mixpanel in it. When i create xcframework and integrate it in my sample project i'm getting the below crash:
dyld: lazy symbol binding failed: Symbol not found: _$s8MixpanelAAC10initialize5token13launchOptions13flushInterval12instanceName21automaticPushTracking06optOutL9ByDefaultAA0A8InstanceCSS_SDySo019UIApplicationLaunchE3KeyaypGSgSdSSS2btFZTj Referenced from: /Users/uzairshahzad/Library/Developer/CoreSimulator/Devices/F078F0D6-1469-430B-AB7B-35DDAECCC333/data/Containers/Bundle/Application/71E16C58-078E-4A8F-AF48-3ADAE35A210F/MixpanelExample.app/Frameworks/TGPaySDK.framework/TGPaySDK Expected in: /Users/uzairshahzad/Library/Developer/CoreSimulator/Devices/F078F0D6-1469-430B-AB7B-35DDAECCC333/data/Containers/Bundle/Application/71E16C58-078E-4A8F-AF48-3ADAE35A210F/MixpanelExample.app/Frameworks/Mixpanel.framework/Mixpanel
The text was updated successfully, but these errors were encountered: