Skip to content
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

Could not build Objective-C module after updating to Swift 3.0 #584

Closed
wattson12 opened this issue Oct 5, 2016 · 2 comments
Closed

Could not build Objective-C module after updating to Swift 3.0 #584

wattson12 opened this issue Oct 5, 2016 · 2 comments

Comments

@wattson12
Copy link

Integration Method: CocoaPods (via Segment-Mixpanel pod) v0.39.0
Xcode Version: 8.0
Library Version: 3.0.4
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 Mixpanel. The pod is integrated, and seems to be built as a framework but when I import mixpanel I have 2 errors:

  • Mixpanel.h file not found (in MixpanelPrivate.h)
  • Could not build Objective-C module 'Mixpanel' (shown wherever import is in my code)

This looks identical to this closed issue: #577 but the fix mentioned there was to change to the swift library. I am using mixpanel via a Segment integration (https://github.com/segment-integrations/analytics-ios-integration-mixpanel) so that isn't an option (I'll raise this issue there as well)

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

@yarneo
Copy link
Contributor

yarneo commented Oct 5, 2016

hey @wattson12 , please update your cocoapods version at least to v1.0.0 (preferably v1.1.0 if using swift3 and xcode8), otherwise you will keep encountering this issue. Thanks!

@wattson12
Copy link
Author

Thanks @yarneo, updating to cocoapods 1.1.0 worked 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants