1

I'm trying to use pythonKit in order to run a Pyhton code from swift.

This code works fine:

let sys = Python.import("sys")
      sys.path.append("Users/fusic/Desktop/PyrhonTest/PyrhonTest/")
      let example = Python.import("main")
    button.title = String(example.hello()) ?? ""

Then, I archive my project and run the app's release version. When pythonKit is called, the app crashes. These is the beginning of the report log. Any ideas how to fix this?

enter image description here

2
  • I'm having the same issue... any success? Commented Aug 3, 2021 at 6:34
  • @amit-hagin Any success with this? I am also facing same problem. Working fine in debug mode and fails in release mode Commented Jun 20, 2023 at 10:06

1 Answer 1

0

What worked for me is to turn off Enable Bitcode and set Strip Style to Debugging Symbols for both Release and Debug.

Sign up to request clarification or add additional context in comments.

2 Comments

Thats still giving crash to me
The last, setting Strip Style to Debugging Symbols did the trick for me! You are a literal genius. Tysm!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.