59

I'm new to Fastlane. Does anyone know how to fix this error from running

fastlane ios myLane.

The output:

[12:50:11]: fastlane finished with errors

[!] Unable to locate Xcode. Please make sure to have Xcode installed on your machine

But I have the newest Xcode (9.3.1) installed from Mac App Store.

Environment info:

fastlane --version

fastlane 2.95.0

which is the newest version.

ruby -v

ruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17]

Community
  • 1
  • 1
wzso
  • 3,482
  • 5
  • 27
  • 48

2 Answers2

161

Try check Preferences in Xcode under Locations and be sure you have selected your Xcode version in the Command Line Tools dropdown: Select Xcode version

Dinsen
  • 2,139
  • 3
  • 19
  • 25
35

CLI approach:

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

Andrei Konstantinov
  • 6,971
  • 4
  • 41
  • 57