1. Locate the path where Python is installed on your computer. OSX system has Python installed by default, the default path is/usr/bin/python. In case of uncertainty, you can also open the command line and view it with the Whereis python command.
2. Open Xcode7, select File->new->project, and the new Project menu will pop up
3. In the Open Project menu dialog box, select "External Build System" Under the Other tab, then click "Next"
4. The diagram fills in the "Product name", "Organization name", "Organization Identifier", "Build Tool", the first three items on the project name, the organization name and the organization logo customization can be filled, The last item to install the Python path, and finally click "Next"
5. Click on the menu Product->scheme->edit scheme, this scheme I understand is the configuration parameters of the new project
6.6. In the Scheme Edit dialog box, run->info->executable, after selecting other, it is expected to pop up a selection dialog box, the python shown in the figure is the effect I configured, the default is no Python option
After selecting the other expected pop-up selection dialog box, directly enter "/", you can enter the custom path input box, enter "/usr" after go
In the Scheme Edit dialog box, run->arguments->arguments Passed on Launch, create a new. py file that you are about to create
tab option, tick working directory and select the folder where Xcode project is located, which is where your. py file is stored, and finally determine
Do not tick off, will error;
Message from Debugger:cannot attach to process due to System Integrity Protection
Program ended with exit code:-1
Message from Debugger:cannot attach to process due to System Integrity Protection
Program ended with exit code:-1
Xcode builds a python development environment