XCodeのbeta版を入れて動作確認しようとしたが、うまくいかない時の対処法
(ライブラリ側がSwiftのバージョンに対応している前提)
Module compiled with Swift 3.1 cannot be imported in Swift 3.2
のように出てしまう。
carthageが古ければcarthageのアップデートをする。
brew update carthage
対処法1
以前のXCodeが残っている場合はメインのXCodeを切り替える
sudo xcode-select --switch ~/Downloads/Xcode-beta.app
対処法2
carthage updateする際に --no-use-binaries オプションをつける
carthage update --platform iOS --no-use-binaries
これで自分はうまくいきました。