title: env: python: No such file or directory when building app with Xcode
body: <p>When I build/run/archive my app in Xcode (on MacOS 12.3) I encounter this error:</p>
  <pre><code>env: python: No such file or directory
  Command Ld failed with a nonzero exit code
  </code></pre>
  <p>I think I might have changed something with regard to my python environment while working on a school project or messed something up there. However, I can not figure out what is wrong.</p>
  <p>I tried reinstalling Xcode and python (using brew and pyenv). I also relinked python using brew. But I still encounter the same error.</p>
  <p>Which python gives the following results:</p>
  <pre><code>which python3
  -&gt; /usr/local/bin/python3
  </code></pre>
  <p>And in my ~/.zshrc I have the following line:</p>
  <pre><code>export PATH=/usr/local/bin:/usr/local/sbin:~/bin:$PATH
  </code></pre>
  <p>Any help would be appreciated! If I missed or forgot anything please let me know, I'm quite new to this.</p>