![]() Posted 5 months ago by rogu3 After almost a day of trying different solutions your mentioned way solved the issue. I'm a bit confused why Xcode is looking for Xcode in it's own folder now and doesn't use python3 that comes with macOS. You can check xcode-select -install to see the return 'xcode-select: error: command line tools are already installed, use 'Software Update' in System Settings to install updates' Now the command line tools work as intended. I also tried sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/bin/python3.8 /Applications/Xcode.app/Contents/Developer/usr/bin/pythonĪs I noticed there's python3.8 in Xcode's folder but that didn't work either. I tried: sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Applications/Xcode.app/Contents/Developer/usr/bin/pythonĪnd sudo ln -s /Library/Developer/CommandLineTools/usr/bin/python3 /Library/Developer/CommandLineTools/usr/bin/python Xcode-select -p results in /Applications/Xcode.app/Contents/Developer So I went that path, installed it globally and set env into my shell. Later found an article where the author suggested installing python using pyenv. ![]() While it seems like macOS 12.5 ships with python3 already none of the options worked me. Click install, it finishes, running ns doctor ios and starting over. Tested my configuration with ns doctor ios - it complained about missing python and Xcode dialog prompted me to install python. Then did python3 -m pip install -upgrade pip and python3 -m pip install six. First I followed the suggestion from NativeScript docs ( ) and ran sudo ln -s $(which python3) /usr/local/bin/python which created an alias for python 2.x. I reset my Mac and reinstalled macOS so a fresh setup was used. I'm building an app using NativeScript and I can't release the app because every time I go to product > archive Xcode says "Python command requires the command line tools." When I agree to install it will look like it installed but then start over. Note: After installing Xcode, I launched it, accepted license agreement and let it finish its run of installing additional tools (which is a one time activity).My setup is 2021 MBP with M1 Pro processor, macOS 12.5 and Xcode 13.4.1. The Command Line Tools Package is a small self-contained package available for download separately from Xcode and that allows you to do command line development in macOS which. What is the advisable approach to take here? Here's the complete picture (pardon the pun):Īlthough I am talking in context of macOS Mojave, the question remains the same with regard to previous versions of macOS. when running brew config, the value for CLT: is shown as N/A. Also, from my previous experience, if the command line tools aren't installed separately from Xcode (by running xcode-select -install), they are not detected by Homebrew, i.e. What's the probable reason for this disparity? Will this install Xcode command line tools twice? Or overwrite the existing installation?Īs I understand, Xcode command line tools can be installed without installing Xcode. Thus far I am convinced that the Xcode command line tools are installed. I also ran, gcc and make and bash was able to locate and execute them. Which printed the path for the Developer directory as follows: /Applications/Xcode.app/Contents/DeveloperĪs suggested in the answer, I also verified the return value by running: Or not?Īs per this answer, I checked if the command line tools are installed by running: My understanding is that installing Xcode also installs the command line tools. Now, I wish to install Homebrew which requires Xcode command line tools to be installed. ![]() Immediately after that I installed Xcode Version 10.0 (10A255) from the Mac App Store. I performed a fresh install of macOS Mojave 10.14.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |