I had this issue too for a long time.
I tried most of these solutions. I'm sure they worked for some people, but not for me...
Then I noticed if you go to Project Settings -> Build Phases -> Embed Frameworks there is a flag for Copy only when installing... I ticked it.
This problem went away.