Using Xcode 12.5 as IDE for Python 3.9.4

Dear Community,

I've been trying to use Python in Xcode to run my programs

I tried changing the scheme and stuff. I'm pretty much confused with mentioning directories.

I have installed Python 3.9.4 in my M1 MacBook running BigSur through Homebrew

Here's my terminal output

Code Block
~ % python
Python 3.9.4 (default, Apr  4 2021, 17:42:23) 
[Clang 12.0.0 (clang-1200.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

I could not find the python executable file when I tried to map the directory to the 'Info' section of Xcode, Instead, I can find python3

Please help me to resolve this issue!


Open terminal or the shell of your choice.

Enter in which python3 - hit enter.

Now the path should be shown to you, for example /usr/bin/python3

Using Xcode 12.5 as IDE for Python 3.9.4
 
 
Q