Question

Swift errors in React Native library

  • 22 January 2021
  • 1 reply
  • 37 views

Badge +1

Hello!

I’m using your library "mixpanel-react-native": "^1.0.1".  I did pod install and when I compiled it display some errors all corresponding to Swift such as: 

static Mixpanel.Network.apiRequest<A>(base: Swift.String, resource: Mixpanel.Resource<A>, failure: (Mixpanel.Reason, Foundation.Data?

Why is that?

My React Native version 0.60.5

Xcode 12.3

SDKs For iOS 14.3

 

Regards


1 reply

Experiencing this as well! Builds fine on android so it is an iOS issue. A whole list of errors, here is another one

"Foundation.Notification.userInfo.getter : [Swift.AnyHashable : Any]?", referenced from:

      Mixpanel.MixpanelInstance.(appLinksNotificationRaised in _0CB45E1C8B4A4433813A640264188496)(Foundation.Notification) -> () in libMixpanel-swift.a(MixpanelInstance.o)

  "type metadata accessor for Foundation.Notification", referenced from:

      @objc Mixpanel.AutomaticEvents.appWillResignActive(Foundation.Notification) -> () in libMixpanel-swift.a(AutomaticEvents.o)

      @objc Mixpanel.AutomaticEvents.(appDidBecomeActive in _605E72CF2289904EAFB7C8EFFFA3544F)(Foundation.Notification) -> () in libMixpanel-swift.a(AutomaticEvents.o)

      @objc Mixpanel.MixpanelInstance.

 

I have raised a support ticket for this as well

React native 0.63.4

Xcode 12.3

SDKs for iOS 14.3

Reply


Mixpanel