AppName.app (for simulator) and AppName.ipa (for iphone/ipad physical device) are the two files needed and created using Xcode IDE. You need to build the app as DEBUG/RELEASE (in XCODE -> Product -> Scheme -> Edit Scheme -> Select RUN on the left panel -> Select INFO on top menu bar -> To the right of Build Configuration toggle between Release (creates an IPA*) and (Debug creates an APP). COMMAND+B will build your project. After the build process completes navigate to DerivedData folder which can be found using this: (in XCODE -> File -> Workspace Settings -> click on small arrow to the right of file URL. The file URL is just above the “Advanced…” button.
See XCODE (Window -> Organizer -> Archives -> Export -> Adhoc to create the IPA file).