The only thing that worked for me was connecting an iPhone to the Mac. Before that I tried running it on a simulator.