I want to set up a python 3 project in Xcode, but I cannot complete the step when I am asked to select an executable for the circuit. See Step 16 in response to Python in Xcode 4+? .
I use "which python3" to search for the executable:
$ which python3 /usr/local/bin/python3
but Xcode does not allow me to select python3 from "/ usr / local / bin" by clicking on it:
, : ls -l/usr/local/bin/python3 "../Cellar/python3/3.5.1/bin/python3", , , , "../Frameworks/Python.framework/Versions/3.5/bin/python3", , , "Python3.5" . Xcode :
Xcode 7.3.1 OS X 10.11.4. python 3.5.1 home- brew.
python3.5 . , python3.5 . ( , python3.6 - python).
python
quicklook
Python ""
. , (, , ): python3, " ", , , , "" "". . - - python3 , Homebrew /usr/local/bin/python 3, brew , Xcode -, , . ( , .) , , Homebrew ""; , "" , ls -al /usr/local/bin/python3 , python3 Homebrew, /usr/local/Cellar/python3/3.5.2_3/bin/(python3).
ls -al /usr/local/bin/python3
/usr/local/Cellar/python3/3.5.2_3/bin/(python3)
Just right click and quick view function. The file becomes selectable, and then you can specify it as an executable in your Xcode project.
If you are using Anaconda, you can install the package python.app:
python.app
conda install python.app
Then in Xcode select </path/to/anaconda-environment>/python.app/Contents/MacOS/python.
</path/to/anaconda-environment>/python.app/Contents/MacOS/python
(Note: Do not select python.appin the bin( </path/to/anaconda-environment>/bin/python.app) directory , which will result in some error regarding the Mach-O header.)
bin
</path/to/anaconda-environment>/bin/python.app