LoginSignup
1
1

More than 5 years have passed since last update.

XCodeのbeta版を入れた時にcarthageのライブラリがimportできない時の解決方法

Last updated at Posted at 2017-08-25

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

これで自分はうまくいきました。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1