Unable to locate Xcode. Please make sure to have Xcode installed on your machine
Solution 1
Try check Preferences in Xcode under Locations and be sure you have selected your Xcode version in the Command Line Tools dropdown:
Solution 2
CLI approach:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
Benjamin Wen
Hi there 👋 "If you really want to understand something, the best way is to try and explain it to someone else. That forces you to sort it out in your mind. And the more slow and dim-witted your pupil, the more you have to break things down into more and more simple ideas. And that's really the essence of programming. By the time you've sorted out a complicated idea into little steps that even a stupid machine can deal with, you've learned something about it yourself." - Douglas Adams
Updated on June 14, 2022Comments
-
Benjamin Wen almost 2 years
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]
-
Ali Ammaar almost 3 yearsWorked like a charm for Xcode 12.4, thanks