kewlbear/Python-iOS

App crashes when I deploy it on my physical device

VotusX opened this issue · 0 comments

Hello there,

I'm using the library sympy and imported it. In the simulator, everything is working fine but as soon as I deploy on my physical device the app crashes with

PythonKit/Python.swift:682: Fatal error: 'try!' expression unexpectedly raised an error: Python exception: No module named 'sympy'

as soon as I execute a function which uses that library. I have tried to insert a copy of the sympy folder at /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/ into my bundle but that didn't work out either. I additionally disabled Bitcode and set the Strip Style to Debugging Symbols.

What am I doing wrong?