Posts

Showing posts from 2021

Building and Running Python Scripts with Xcode

Hi, If you want to run python file from xcode, you can follow this link which I have followed.  https://medium.com/sourleangchhean/using-xcode-to-execute-pythons-code-98be65c1ea8a Here is few steps which I have done.   Download and install python (If not already downloaded)(I have downloaded 3.9 version) Check if it available in at /usr/local/bin/python3 Right Click on Python3 then select Show Original Get in to that location in terminal. (Open terminal type cd and drag drop that location file) in my case path is " cd /Library/Frameworks/Python.framework/Versions/3.9/bin/"  Type "ln python3.9 python39" This is for terminal part. Now create new xcode project  File > New > Project > Cross-platform > External Build System > Next Enter Name and  Enter a name (e.g. PythonLearning), and enter the path from  above Step(i.e  /usr/local/bin/python3 ) into the “Build Tool” line. Click Next.  Create a Python file Choose File > New, se...