Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I run / record an iOS app in the XCode 6 iOS Simulator?

I might be going about this wrong, but I am trying to run an iOS app in the Xcode 6 iOS simulator in order to record a video tutorial of the app. I have xCode installed and can launch the iOS simulator, but there seems to be no way to install an .app file. The ~/Library/Developer/CoreSimulator folder is a complete mystery and there is no clear location to drop the app files.

Any ideas?

Alternatively, is there an easier way to record a video of your iOS app? People must do it all the time for tutorials...

Thanks

like image 878
Vinny Troia Avatar asked Oct 23 '14 08:10

Vinny Troia


People also ask

How do I record iOS simulator on Mac?

To record a video, open the simulator and go up to the simulator menu. Choose File > Record Screen. Alternatively, you can simply press command-R to start the recording.

How do you run your app in iOS simulator?

To run your app in Simulator, choose an iOS simulator—for example, iPhone 6 Plus, iPad Air, or iPhone 6 + Apple Watch - 38mm—from the Xcode scheme pop-up menu, and click Run. Xcode builds your project and then launches the most recent version of your app running in Simulator on your Mac screen, as shown in Figure 1-1.


Video Answer


3 Answers

If you were running the app on a device, you could use the new Yosemite feature to record over USB to QuickTime.

However, as you are using the simulator, you will need to a partial screen recording in QuickTime.

Using QuickTime

Launch QuickTime then go to File > New Screen Recording. You can either click to select the whole screen, or drag to only record a portion of the screen.

enter image description here

Alternatives

If you want more flexibility, you will need to use 3rd party software like ScreenFlow.

like image 139
squarefrog Avatar answered Sep 28 '22 11:09

squarefrog


From Xcode 8.2,You can take a screenshot or record a video of the simulator window using the xcrun command-line utility.

Launch your app in Simulator.
Launch Terminal (located in /Applications/Utilities), and enter the appropriate command:
To take a screenshot, use the screenshot operation:
xcrun simctl io booted screenshot

You can specify an optional filename at the end of the command.

To record a video, use the recordVideo operation:
xcrun simctl io booted recordVideo <filename>.<extension>

To stop recording, press Control-C in Terminal.

Note: You must specify a filename for recordVideo.
The default location for the created file is the current directory.
For more information on simctl, run this command in Terminal:

xcrun simctl help

For more information on the io subcommand of simctl, run this command:

xcrun simctl io help

Check this link for more details.

like image 30
Abhijith Avatar answered Sep 28 '22 11:09

Abhijith


You can use 'Build & Run' in Xcode to install and run your app in the iOS Simualtor.

Alternatively, you can run xcrun simctl install <Device UDID> <Path to app> to install your app. See xcrun simctl help for more information.

Regarding recording a screen capture video, you should use QuickTime.

like image 36
Jeremy Huddleston Sequoia Avatar answered Sep 28 '22 11:09

Jeremy Huddleston Sequoia