Method to build Python environment in Xcode 6

Python 2



  1. Open your Xcode, Choose 'Create a new Xcode project'.
  2. Choose 'Other'option under OS X, then choose 'External Build System'. click Next.
  3. Enter your product name. eg. MyPython.
  4. important!! Be careful to fill the blank named 'Build Tool'. We should to fill our Python tool directory. Python2 is '/usr/bin/python'.then, click Next.
  5. Choose the directory to save your project.Click Create.
  6. Choose 'Product' -> 'Scheme' -> 'Edit Scheme' on Xcode Tool Bar.
  7. In the Edit view, choose 'Run' on the left option list.choose 'Info' option on the right,then, Choose 'Executable' -> 'other'.then press key 'command + shift + G', input '/usr/bin/python', click 'Go'.finally choose 'python', click 'Choose'.
  8. The same in 'Info', unselect the 'Debug executable' option.
  9. Next, choose the 'Arguments' option, under 'Arguments Passed On Launch', click '+', input your python file name. eg "kqx.py".
  10. Next, choose the 'Options', select 'Working Directory', choose your Xcode project dirctory.
  11. OK, it is all. Then close the 'Edit Scheme' View.
  12. Then, we can create a python project.'Command + N' to choose 'OS X'->'Empty'->Next.Input your python file name. eg "kqx.py". click 'Create'.
  13. Your can code your python code.~(≧▽≦)/~
  14. Uploading 5B1D0E02-B228-4F6F-89F4-DE8C0AEA2095.png

Recommended Posts

Method to build Python environment in Xcode 6
How to access environment variables in Python
I want to build a Python environment
To reference environment variables in Python in Blender
Simplex method (simplex method) in Python
virtual environment in python
Private method in python
Development environment in Python
To dynamically replace the next method in python
[TF] How to build Tensorflow in Proxy environment
Use os.getenv to get environment variables in Python
To flush stdout in Python
Build an interactive environment for machine learning in Python
[python] Method to darken RGB value in hexadecimal notation
Login to website in Python
Handle environment variables in Python
Build python3 environment with ubuntu 16.04
Build Python environment on Windows
How to build a Django (python) environment on docker
Build python environment with direnv
[ev3dev × Python] Build ev3dev development environment
Build python environment on windows
Speech to speech in python [text to speech]
Implement method chain in Python
[Python] Created a method to convert radix in 1 second
Build a Python environment offline
How to develop in Python
Suppressing method overrides in Python
How to build a Python environment on amazon linux 2
Post to Slack in Python
How to build a new python virtual environment on Ubuntu
How to use the __call__ method in a Python class
Build a Python development environment in Eclipse (add HTML editor)
I tried "How to get a method decorated in Python"
How to develop in a virtual environment of Python [Memo]
Build a Python environment and transfer data to the server
Convenient writing method when appending to list continuously in Python
How to build a python2.7 series development environment with Vagrant
UpNext2 Development Record # 1 Build Python CI environment in VS Code
[Python] How to do PCA in Python
Convert markdown to PDF in Python
Build python virtual environment with virtualenv
How to collect images in Python
Try implementing extension method in python
Install scrapy in python anaconda environment
How to use SQLite in Python
Build Mysql + Python environment with docker
In the python command python points to python3.8
Try to calculate Trace in Python
Implemented label propagation method in Python
install tensorflow in anaconda + python3.5 environment
Simulate Monte Carlo method in Python
How to use Mysql in python
How to wrap C in Python
How to use ChemSpider in Python
6 ways to string objects in Python
Hash method (open address method) in Python
How to use PubChem in Python
Build Python 3.8 + Pipenv environment on Ubuntu 18.04
Build a python3 environment on CentOS7
How to handle Japanese in Python