How to launch an iOS application in Simulator from Terminal and AppleScript

3.6k Views Asked by At

I have made an iOS application in Xcode and built it. It has created an .app bundle. I am able to launch the app in Simulator or on the device successfully from Xcode or iTunes, but now I want to launch it in Simulator through AppleScript from Terminal.

I am able to build the app from Terminal, but unable to launch it in Simulator. Somehow I found out that an .ipa file is needed to run the app from Terminal.

Is there a way to launch an iOS app I built in Simulator from Terminal?

1

There are 1 best solutions below

0
On

I found an .ipa file that I wanted using iTunes and copied it over to my desktop. After that I changed the extension to .zip and extracted it. Next I found the Payload folder and moved the application inside to my desktop. Finally I moved that application to my iPhone simulators applications folder found at: "Your disk name">Developer>Platforms>iPhoneSimulator.platform>Developer>SDKs> iPhoneSimulator4.3.sdk>Applications

Hope this helps! (Note: Some apps crash more often than others.)