I had SAB working a few weeks ago for building both iOS and Android apps. However, when I tried building the same iOS app today, it says I need to “Install Xcode from the Mac App Store” first. But Xcode was installed and working. So I’ve spent a lot of time and tried:
Uninstalling/reinstalling Xcode 9.2 (9C40b) on macOS High Sierra
Reinstalling Command Line Tools (macOS 10.13) for Xcode 9.2
When iOS 11 came out, it was required that the app icons to be included in the compiled asset catalog for the app to be approved to the Apple App Store. To re-compile the asset catalog, we have to use a tool that is only available in Xcode 9+ (not in the Xcode Command-Line Tools). So now you have to have Xcode installed.
If you had Xcode Command-Line Tools before and then install Xcode 9.2, it looks like the active developer directory can not be updated to Xcode. To check what the active developer directory is, run the following command from the terminal:
To check for the correct version of Xcode, SAB does the following:
runs xcode-select -p and make sure the path ends in .app/Contents/Developer (i.e. points to a directory in a .app container, most likely Xcode, but it can be renamed and it still works).
runs xcodebuild -version and make sure the returned version number >= 9.0
I will try to update the installation documentation to have the user verify this when installing.
Yep that was the password I was using with no luck. I ended up closing down terminal, reopening, trying my system password again, and it worked. Thanks!