SwiftInfo: module compiled with Swift 5.1 cannot be imported by the Swift 5.1.2 compiler
Hi @rockbruno, thank you for this awesome project!! π π
I installed swiftinfo via Homebrew:
$ brew tap rockbruno/SwiftInfo https://github.com/rockbruno/SwiftInfo.git
$ brew install rockbruno/SwiftInfo/swiftinfo
When I try to run it, I am getting this error:
$ swiftinfo
* SwiftInfo 2.3.6
./Infofile.swift:1:8: error: module compiled with Swift 5.1 cannot be imported by the Swift 5.1.2 compiler: /usr/local/Cellar/swiftinfo/2.3.7/bin/../include/swiftinfo/SwiftInfoCore.swiftmodule
import SwiftInfoCore
^
I found this where they suggest to add the -enable-library-evolution compiler flag. Could that be the fix?
My System
macOS: 10.15.1 (19B88) Xcode: Version 11.2.1 (11B53)
$ swift --version
Apple Swift version 5.1.2 (swiftlang-1100.0.278 clang-1100.0.33.9)
Target: x86_64-apple-darwin19.0.0
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 19 (8 by maintainers)
The formula is not public, youβre probably searching for this: https://raw.githubusercontent.com/rockbruno/SwiftInfo/2.3.7/Formula/swiftinfo.rb
Didnβt work, I get the reverse error π’
module compiled with Swift 5.1.2 cannot be imported by the Swift 5.1 compilerIβll try to reverse engineer what xcode does when that setting they mention in the Swift forums thread is active to see if weβre missing something.