How to call python scripts in iOS apps?

I want to create my own iOS app. It will be written primarily in Objective-C format. But I need to call some python scripts. I do this watch.

Questions:

1: I found this post ( Running python / ruby ​​script on iPhone? From iPhone OS 4 conditions --- 3.3.1 - Applications can only use the Documented API in the order prescribed by Apple and should not use or call any private APIs: Applications must be natively written in Objective-C, C, C ++ or JavaScript, as the iPhone OS WebKit engine does, and only code written in C, C ++, and Objective-C can be compiled directly contact Documented APIs (e.g. applications that reference Documented APIs through intermediary translation or a compatibility level or tool prohibited)). But 2 years have already passed. Are there any changes to this agreement?

2: If you can call a python script in an iOS application, can someone explain this to me using some code samples?

+4
source share
1 answer

You will need to embed the interpreter in your application. I believe this is the thread you are looking for. Embedding Python in an iPhone App

+5
source

Source: https://habr.com/ru/post/1438058/


All Articles