I know that in order to get xcode install directory from command line I have to use xcode-select -print-path
. The result is something like: /Applications/Xcode.app/Contents/Developer
Is there any command to get latest SDK folder? I need as result something like: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/
If it's not possible to get the SDK complete path I need at least SDK number and I'll try to build the path.
The location of the folder is located in the text box near the top that says “Android SDK Location”. By default the Android SDK location is stored at “/Users/[USER]/Library/Android/sdk” or at “/Library/Android/sdk/”.
For macOS, start Android Studio, then click Android Studio —> Preferences menu item. Select Appearance & Behavior —> System Settings —> Android SDK menu item in the popup window left side. On the window right side, click the Edit link after the Android SDK Location text box, it will open the SDK Setup dialog.
A software development kit (SDK) provides a set of files to build applications for a target platform, and defines the actual location of those files on the target platform or an intermediate platform that supports the target platform (for example, Mac OS X provides SDKs for iOS).
The easiest way I found so far is:
xcrun --show-sdk-path
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With