In the Menu, Product > Archive. If you want to distribute your application you'll need to make sure that its properly code signed.
And checkout Testflight https://testflightapp.com/ they have lots of resources on how to build and distribute Ad Hoc builds which are builds that you can give to people.