Python Forum
building app in XCODE with python - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: building app in XCODE with python (/thread-40433.html)



building app in XCODE with python - phantom115 - Jul-28-2023

Good day all,

I am trying to code in Xcode to get arm64 support for my app, I need to select the python Unix Executable File as is found in /usr/bin/python3

I attempted to follow some guides they directed me to the below for a target.
####### bin % which python3
/Library/Frameworks/Python.framework/Versions/3.11/bin/python3
####### bin %

But this fails because the above path after installing python3 from python.org or brew results in the below:

/Library/Frameworks/Python.framework/Versions/3.11/bin/python3 -> is a Alias - 10 bytes And references path under get info on the file

original: /Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11

And that file is a Document - 153 KB under get info

When I launch IDLE and go to file --> Path browser I can see /Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11 becomes a folder in that app.

I need the python file as a Unix Executable File just like the default python that comes with Mac OS under /usr/bin/ named python3

I tried to find some guides to do that, but I having some trouble, hopfuly the rewording of this post clarifies my problem better.

Thank you for any help.


RE: building app in XCODE with python - snippsat - Jul-28-2023

Change Path in .bashrc, bash_profile or .zshrc file,eg in this link
Can also look this The right and wrong way to set Python 3 as default on a Mac


RE: building app in XCODE with python - phantom115 - Aug-02-2023

(Jul-28-2023, 05:29 PM)snippsat Wrote: Change Path in .bashrc, bash_profile or .zshrc file,eg in this link
Can also look this The right and wrong way to set Python 3 as default on a Mac

Thank you, That information did the trick. I was able to have a python unix executable.