If you are using the simulator:
- Press
command + shift + ,in Xcode to open the scheme editor - Select the Run scheme
- Go to the Options tab
- Check ✅
Allow Location Simulation - Select a Default Location in the dropdown
Selecting None as your Default Location may have caused the problem.