Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4099052
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:23:00+00:00 2026-05-20T20:23:00+00:00

How does one create a Python friendly environment in Xcode 4, 5, 6 or

  • 0

How does one create a Python friendly environment in Xcode 4, 5, 6 or 7?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T20:23:00+00:00Added an answer on May 20, 2026 at 8:23 pm

    I figured it out! The steps make it look like it will take more effort than it actually does.

    These instructions are for creating a project from scratch. If you have existing Python scripts that you wish to include in this project, you will obviously need to slightly deviate from these instructions.

    If you find that these instructions no longer work or are unclear due to changes in Xcode updates, please let me know. I will make the necessary corrections.

    1. Open Xcode. The instructions for either are the same.
    2. In the menu bar, click “File” → “New” → “New Project…”.
    3. Select “Other” in the left pane, then “External Build System” in the right page, and next click “Next”.
    4. Enter the product name, organization name, or organization identifier.
    5. For the “Build Tool” field, type in /usr/local/bin/python3 for Python 3 or /usr/bin/python for Python 2 and then click “Next”. Note that this assumes you have the symbolic link (that is setup by default) that resolves to the Python executable. If you are unsure as to where your Python executables are, enter either of these commands into Terminal: which python3 and which python.
    6. Click “Next”.
    7. Choose where to save it and click “Create”.
    8. In the menu bar, click “File” → “New” → “New File…”.
    9. Select “Other” under “OS X”.
    10. Select “Empty” and click “Next”.
    11. Navigate to the project folder (it will not work, otherwise), enter the name of the Python file (including the “.py” extension), and click “Create”.
    12. In the menu bar, click “Product” → “Scheme” → “Edit Scheme…”.
    13. Click “Run” in the left pane.
    14. In the “Info” tab, click the “Executable” field and then click “Other…”.
    15. Navigate to the executable from Step 5. You might need to use ⇧⌘G to type in the directory if it is hidden.
    16. Select the executable and click “Choose”.
    17. Uncheck “Debug executable”. If you skip this step, Xcode will try to debug the Python executable itself. I am unaware of a way to integrate an external debugging tool into Xcode.
    18. Click the “+” icon under “Arguments Passed On Launch”. You might have to expand that section by clicking on the triangle pointing to the right.
    19. Type in $(SRCROOT)/ (or $(SOURCE_ROOT)/) and then the name of the Python file you want to test. Remember, the Python program must be in the project folder. Otherwise, you will have to type out the full path (or relative path if it’s in a subfolder of the project folder) here. If there are spaces anywhere in the full path, you must include quotation marks at the beginning and end of this.
    20. Click “Close”.

    Note that if you open the “Utilities” panel, with the “Show the File inspector” tab active, the file type is automatically set to “Default – Python script”. Feel free to look through all the file type options it has, to gain an idea as to what all it is capable of doing. The method above can be applied to any interpreted language. As of right now, I have yet to figure out exactly how to get it to work with Java; then again, I haven’t done too much research. Surely there is some documentation floating around on the web about all of this.

    Running without administrative privileges:

    If you do not have administrative privileges or are not in the Developer group, you can still use Xcode for Python programming (but you still won’t be able to develop in languages that require compiling). Instead of using the play button, in the menu bar, click “Product” → “Perform Action” → “Run Without Building” or simply use the keyboard shortcut ^⌘R.

    Other Notes:

    To change the text encoding, line endings, and/or indentation settings, open the “Utilities” panel and click “Show the File inspector” tab active. There, you will find these settings.

    For more information about Xcode’s build settings, there is no better source than this. I’d be interested in hearing from somebody who got this to work with unsupported compiled languages. This process should work for any other interpreted language. Just be sure to change Step 5 and Step 16 accordingly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How does one work with string resources in python/gae in eclipse+pydev environment? looking for
How does one create Dynamic CSS and JavaScript On-The-Fly (using PHP). This needs to
How does one create a package for a Java Project through the Unix command-line?
How does one create a java.security.cert.X509Certificate instance from a PEM-formatted String? The PEM-formatted String
Does startService() create a new Service instance or using the existing one? For example,
I'm trying to create a two-way communication channel between two programs (one in Python
How does one create an administrative network share [1] with read-only permissions from C/C++
How does one convert a stand-alone .tlb file created in a pre-2009 version of
does one perform better over the other in terms of indexing/quering etc ? e.g.
How does one wait until all of the Javascript is loaded before curling a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.