Build failure: module compiled with Swift 5.5.2 cannot be imported by the Swift 5.6.1 compiler
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: master
- OS version: macos 12.3.1
Haven't been able to build iTerm since updating to macos Monterey
Error: /REPO/iTerm2/sources/StatusBarKnobFontViewController.swift:9:8: error: error extracting version from module interface import BetterFontPicker ^ /REPO/iTerm2/sources/StatusBarKnobFontViewController.swift:9:8: error: module compiled with Swift 5.5.2 cannot be imported by the Swift 5.6.1 compiler: /REPO/iTerm2/BetterFontPicker/BetterFontPicker.framework/Modules/BetterFontPicker.swiftmodule/x86_64-apple-macos.swiftmodule import BetterFontPicker
Detailed steps to reproduce the problem:
- clone iTerm repo
- (try to) build using xCode 13.4.1
What happened: build failed - incompatible swift versions - BetterFontPicker
What should have happened: build succeeded
Also tried changing build settings "Build libraries for distribution" - YES - but get "Command CompileSwiftSources failed with a nonzero exit code"
Am I missing something?