Generate iOS to Apple Store - optimization questions


When I build my .app binary with XCode from

Product --> Archive
and then, Validate and Upload to Apple Store

it works ok but…

What is the difference with to build the .app as follows:
ionic cordova build ios --prod --release --aot --minifyjs --optimizejs

The first option loose these “–aot --minifyjs --optimizejs” optimizations?

I’m confusing, please I need help!