How can I run python in xcode?

Answered


I am new to developement and rn, working on a native iOS app as an intern.

Recently, I have been asked to create APIs in python for further functionality and now, I have started learning python but I am finding it difficult to shift between xcode and pycharm at the same time. As I am much familiar with xcode, can I use python on xcode instead of shifting on PyCharm? Is that possible?

0
3 comments

As far as I know, Xcode can edit and run Python files, but it doesn't provide Python-specific IDE features like: Syntax highlighting and code completion for Python , Integrated Python debugging, etc

So in general the recommendation would be to context-switch between two and have access to functionalities on both sides, and this is a pretty standard workflow in multi-language development.


Since this question is primarily about Xcode configuration rather than PyCharm functionality, you may also want to reach out to Apple's developer support or Xcode community forums for Xcode-specific guidance

0

Thanks for the guidance. I did reach out to some iOS developers online and they provided me with a tutorial to run python and surprisingly, I got everything working after following it. But, my question is why python was not working before? Is this my system related issue? or to use python on xcode, we have to set it up everytime on a new device.

0

From the provided  steps most probably you didn't have Python installed on your system which is why  there was no base interpreter to select

0

Please sign in to leave a comment.