segment-integrations / analytics-ios-integration-mixpanel

The Mixpanel analytics-ios integration.
https://segment.com/docs/integrations/mixpanel
MIT License
7 stars 28 forks source link

Could not build Objective-C module for Mixpanel pod after updating to Swift 3.0 #18

Closed wattson12 closed 8 years ago

wattson12 commented 8 years ago

Integration Method: CocoaPods v0.39.0 Xcode Version: 8.0 Library Version: 1.1.0 Platform: iOS Device: Simulator / iPad Language: Swift

Description: After updating my swift app to swift 3.0 / Xcode 8 I have been unable to import Segment_Mixpanel. The pod is integrated, and seems to be built as a framework but when I import I have 3 errors:

I have raised this issue with on the mixpanel-iphone repo as well (https://github.com/mixpanel/mixpanel-iphone/issues/584) as I'm not sure where the best place for a fix is but also listing here in case there is anything that can be done in this repo.

I had hoped a simple fix might be to use the swift mixpanel library from this library but mixpanel doesn't expose anything to objective c for that version

Expected Behavior: Segment_Mixpanel should be able to be imported in a swift 3 code base and used as it was from the swift 2.2 app

wattson12 commented 8 years ago

Closing this as updating the version of cocoapods resolved the issue