I just needed to restart Xcode after changing the teams.
Just go to your Project-Targets-General-Identity-Team.
Change your team and ready!