Not buildable with Xcode 14, SwiftyMarkdown not built for distribution
Bug report
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: master
- OS version: macOS 12.6
- Xcode version: 14.0.1
Detailed steps to reproduce the problem
- Clone latest
master
branch - Try to build .xcodeproj on the latest XCode following these instructions
What happened
Build failed in iTerm2SharedARC/MarkdownPortholeRenderer with error:
/Users/apetresc/src/macos/iTerm2/sources/MarkdownPortholeRenderer.swift:10:8: error build: Module compiled with Swift 5.6 cannot be imported by the Swift 5.7 compiler: /Users/apetresc/src/macos/iTerm2/ThirdParty/SwiftyMarkdown.framework/Modules/SwiftyMarkdown.swiftmodule/arm64-apple-macos.swiftmodule
It looks like SwiftyMarkdown doesn't set the BUILD_LIBRARY_FOR_DISTRIBUTION flag. I don't know if there's anything iTerm can do about this, if we need to pin the Swift compiler version until they fix this, or if we inline the dependency and build it ourselves.
What should have happened
Build should have succeeded.