-1

I have a huge python script with a lot of libraries. I need to do this functionality in swift. But it is super complicated to do this with it. Is there a way to convert this part to c or obj c or something. And then call this script?

Arti
  • 6,685
  • 11
  • 49
  • 111

1 Answers1

1

First you need C-source code. Then you can compile this code with Xcode to a library. Finally, you can call into it from Swift. (Swift can call natively into C).

These are roughly the steps.

AstroCB
  • 12,101
  • 20
  • 56
  • 70
Darko
  • 9,213
  • 9
  • 30
  • 43