Archive a build of your app to distribute to TestFlight or to the App Store.
- Have a working version of your app
- In Xcode, at the top, set the build target to “Any iOS Device”
- Select Product -> Archive.
- When the archive is finished, a new screen will pop up. Click “Validate App.”
- Once validated, you can distribute your app. Click “Distribute App”, then “App Store Connect” to send it to either TestFlight or the App Store.