Ionic won't run app in XCode

I have an app I’m trying to run with an iPhone, but when I run

ionic prepare ios

and then proceed to open the .xcodeproj file, the build/run buttons are greyed out even if it wasn’t, the place where you usually select where you want to run the app (local iPhone, emulators, etc.) shows “My Mac” instead.

What am I doing wrong?? Thanks in advance.