For me, the problem was that the Signing identity was set to Distribution it needs to be set to Development when debugging.