A simple script for doing what the title says:
Usage: ./make_ipa.sh FILENAME
FILENAME is without the .app file, so if you have a directory with Mygame.app, you run:
in that directory.
Make sure you check the errors if there are any generated by Corona, because if there are any the app will not install on any device although it did build.