What is the difference between ionic cordova build ios and Xcode run?

When I run ionic cordova build ios – --buildFlag="-UseModernBuildSystem=0" I get an error that some .h is missing, but when I play Xcode run it’s OK.

What is the difference between these two?