Can we use a .ipa file to automate using appium in iOS

I have a .ipa file provided by customer, When trying to launch it in simulator could find that app gets opened and closed often. Can anybody give suggestions on how to proceed further…

A regular ipa build for an iPhone won’t work on a simulator. You have to get a specific build from your developers for running on the simulator (or run from their source). The specific build has to be run with the following arguments

-sdk iphonesimulator -arch x86_64 -arch i386