MacOS MongoDB Version problem

Hey there!
I’m having a problem with the version of my mongoDB server.
When asking for the version in the shell it says “6.0.1”, but when I try to connect the Database to my Xcode project via “Connect your application” and choose the swift driver it says my version os 3.4.
I am really confused and already asked some people but no one seems to be able to help me…
Thanks for everyone answering! I am just desperate to get the database started for the “real” project.