I am using 'xcodebuild' command to extract the .app file. I can create simulator and device build separately but couldn't create one file which supports both simulator and device using the following command eventhough I specified all the architectures.
xcodebuild -sdk iphoneos -target VantivAccept -configuration Debug CONFIGURATION_BUILD_DIR='/Users/vadaikkappan/Desktop/app' -arch arm64,armv7s,armv7