Hi @xareelee, quite interesting to see more data science interest in Swift! I encountered the same issue for some project I'm working on where I use PythonKit with Swift and Python is installed via Conda. Here's an internal note for the fix that I have been using so far in Xcode:
Note: add
PYTHON_LIBRARYENV variable to point to Conda Python in XCode for running/testing (From "Edit Scheme..."). Example/opt/miniconda3/envs/<yourenv>/lib/libpython3.8.dylib