After archiving the problem i got this error and the app refused to build. Also, if i select a storyboard it crashed completely.
I have tried:
One thing that finally helped me is using this command in terminal:
git stash
And project proceeded to build normally. After I used "git stash pop" the issue returned, so i just deleted the stash using:
git stash drop