filmov
tv
Python with Xcode

Показать описание
Python with Xcode
In this tutorial, I’ll show how to execute and run Python codes with Xcode.
1. Open up Xcode. Applications ▸ Xcode
2. Click on Create a new Xcode project
3. Select Other - External Build System
4. Give a Product Name, such as ‘python’
5. Now open up Terminal. Applications ▸ Utilities ▸ Terminal. And run the command ‘which python’. You’ll get the python directory from there. Copy it
6. Now go back to Xcode, and paste the python directory in Build Tool
7. Save the project in Desktop
8. Now go to Product - Scheme - Edit Scheme
9. Under Edit Scheme menu, click on Run - Info. Locate the Executable to python. Under Executable, you can tap shift+command+G and paste the previously copied directory here in the field to get a quick access to the python bin file. And uncheck Debug executable
11. In Run - Options, change the Working Directory to the Desktop folder python. This folder was created when we saved our Xcode project in Desktop
12. Now open a new file in Xcode. File - New - File… - Other - Empty
14. Now write a python code and run it
Now that your Xcode is all set to execute and run Python codes.
Other Details-
1. OS- OS X Yosemite 10.10
Tariqul Dipu
In this tutorial, I’ll show how to execute and run Python codes with Xcode.
1. Open up Xcode. Applications ▸ Xcode
2. Click on Create a new Xcode project
3. Select Other - External Build System
4. Give a Product Name, such as ‘python’
5. Now open up Terminal. Applications ▸ Utilities ▸ Terminal. And run the command ‘which python’. You’ll get the python directory from there. Copy it
6. Now go back to Xcode, and paste the python directory in Build Tool
7. Save the project in Desktop
8. Now go to Product - Scheme - Edit Scheme
9. Under Edit Scheme menu, click on Run - Info. Locate the Executable to python. Under Executable, you can tap shift+command+G and paste the previously copied directory here in the field to get a quick access to the python bin file. And uncheck Debug executable
11. In Run - Options, change the Working Directory to the Desktop folder python. This folder was created when we saved our Xcode project in Desktop
12. Now open a new file in Xcode. File - New - File… - Other - Empty
14. Now write a python code and run it
Now that your Xcode is all set to execute and run Python codes.
Other Details-
1. OS- OS X Yosemite 10.10
Tariqul Dipu
Комментарии