Paste python into an iOS (iphone) application written in Objective-C / Swift / C / C ++ (any language I can compile in Xcode and switch to iOS)

I do not intend to place the project in the application store

  • The short question is, is there an updated PyObjC tutorial for embedding python scripts in an iOS application written in Objective-C and / or fast? If not, if there is any modern method to achieve the same goal?

  • Background . I want to run python scripts with a bundle in an Objective-C ios application. I tried a couple of things:

+5
source share
1 answer

If anyone is ever interested in calling python from swift, here is some useful stuff I found (used) -

Most of them are designed for Objective-c, but if you need to use swift, you can just create an ObjC-Swift bridge (super super super) - find apple documents

I managed to get the first two methods of working with the OS X application, but I got some architecture errors for iOS (not important). At the moment, I dropped the project, I have a ton that I need to do.

Hope this will be useful for anyone interested :-)

+14
source

All Articles