LoginSignup
1
4

More than 5 years have passed since last update.

xcodeコマンドでxcodeバージョンを指定

Posted at

とあるプロジェクトではxcode7系だが自分のxcodeのバージョンは8系だったので
7系をインストールした際にハマったことを記載します。

旧バージョンApple developerからダウンロードできます。

xcodebuildの時に8系でビルドされていたので、エラーが出たりしてうまくビルドがあります。

以下記載でxcodebuildの際、使用するバージョンを変更できます。

$ xcode-select -p 
/Applications/Xcode.app/Contents/Developer
$ sudo xcode-select -s /Applications/Xcode7.x.x.app/Contents/Developer
$ xcode-select -p 
/Applications/Xcode7.x.x.app/Contents/Developer

これでバージョンを指定することができました。

1
4
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
4