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

Module compiled with Swift 3.0.2 cannot be imported in Swift 3.1 #80

Closed
ikzjfr0 opened this issue Apr 12, 2017 · 3 comments
Closed

Module compiled with Swift 3.0.2 cannot be imported in Swift 3.1 #80

ikzjfr0 opened this issue Apr 12, 2017 · 3 comments

Comments

@ikzjfr0
Copy link

ikzjfr0 commented Apr 12, 2017

I use Carthage (0.20.1):
github "mixpanel/mixpanel-swift" ~> 2.1.5

and run
carthage update --platform iOS --no-use-binaries
(no error/warning message to run this command)

and clean folder of /Users/ouou/Library/Developer/Xcode/DerivedData
and clean project in Xcode

Then I got following compiling error on Xcode 8.3

:0: error: module compiled with Swift 3.0.2 cannot be imported in Swift 3.1: /Users/ouou/Documents/Project/epc-ios/Carthage/Build/iOS/Mixpanel.framework/Modules/Mixpanel.swiftmodule/x86_64.swiftmodule

@mana2love
Copy link

are you already solved this problem? i have same problem now.

@yarneo
Copy link
Contributor

yarneo commented May 16, 2017

Thanks guys, we tried reproducing it on our end but were not able to. @love4maon did you also issue the carthage update --platform iOS --no-use-binaries command with the --no-use-binaries?

If all fails, I suggest updating to Carthage release 0.20: https://github.com/Carthage/Carthage/releases/tag/0.20.0
Which now uses the prebuilt binary only when it used the same Swift compiler version: Pre-built Swift binaries will only be used if they were built with the same version of the Swift compiler

@yarneo
Copy link
Contributor

yarneo commented Jul 17, 2017

Feel free to reopen this issue if you need more help in solving this issue. Thanks!

@yarneo yarneo closed this as completed Jul 17, 2017
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

3 participants