title: Python library not found. Set the PYTHON_LIBRARY environment variable with the path to a Python library
body: <p>I have built a macOS application that using the python language. With the help of PythonKit, I'm using Python in swift.
  When I'm trying to use python then it getting an exception.</p>
  <p><strong>Python library not found. Set the PYTHON_LIBRARY environment variable with the path to a Python library</strong></p>
  <p>But When I add the environment variable ( <em><strong>PYTHON_LIBRARY(Key) : path/of/Python.framework(value))</strong></em> in schema.</p>
  <p><a href="https://i.stack.imgur.com/Mavdy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Mavdy.png" alt="enter image description here" /></a></p>
  <p>And also checked Disable Library Validation in Hardened Runtime capability.</p>
  <p><a href="https://i.stack.imgur.com/BbKPb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BbKPb.png" alt="enter image description here" /></a></p>
  <p>With the help of both, it runs without exception.</p>
  <p>But when I try to build an archive using Developer ID.</p>
  <p>It is getting the same exception.</p>
  <p>I don't know why it's running without exception in debugging mode, not in release mode.</p>
  <p>Any Suggestions...</p>