Questions tagged [simctl]

Introduced in Xcode 6 (by Apple), simctl is a tool that allows you to create, boot, launch and then shutdown and destroy iOS simulators on the fly, and provides commands to install and launch specific apps.

Introduced in Xcode 6 (by Apple), simctl is a tool that allows you to create, boot, launch and then shutdown and destroy iOS simulators on the fly, and provides commands to install and launch specific apps.

If you ever used Genymotion you might have created Android simulators using VirtualBox command line utility, Apple works towards the same flexibility with simctl.

In context of this article, to see a list of available devices, run this command

xcrun simctl list

You will get the list of device types, runtimes and devices. Device types and runtimes will be handy if you need to create new simulators. You can tell simctl to filter output, for example, list devices only

xcrun simctl list devices

Source

43 questions
1
vote
1 answer

How to screen record iOS-real device with command?

I need to screen record iOS from iMAC for the purpose of test automation. I found commands for Android and iOS-Simulator which are: adb screenrecord /sdcard/123.mp4 xcrun simctl io recordVideo --type=mp4 However, I need a command for iOS-real…
John
  • 1,139
  • 3
  • 16
  • 33
1
vote
1 answer

xcrun simctl boot / uninstall hang when simulator isn't running

I'm trying to use xcrun simctl to boot a device and uninstall an application, but it hangs on the uninstall step xcrun simctl boot xcrun simctl uninstall and it hangs on uninstall and sits forever...however, if…
VTS12
  • 452
  • 8
  • 22
1
vote
0 answers

How to turn on debug logging with simctl launch

I want to run my unit tests in several languages: xcrun simctl launch booted com.company.appname -AppleLanguages "(en-GB)" Seems to be the way to run an app in a specific language. Now, when I run my app from titanium command line in the…
1
vote
1 answer

Want to use "xcrun simctl" in Appium automation

Is there a way I can use xcrun simctl commands in my Appium automation? I have came to situation where I wanted to use uninstall and install app from simulator which is not available with appium methods. So, I am thinking if somehow I could use this…
aksdch11
  • 683
  • 6
  • 14
0
votes
1 answer

How To Determine a tvOS Simulator Started and Ready?

I'm working on an Ant build automating start/boot of a tvOS simulator, installs app in the running simulator and launch. When I execute install-to-simulator command, many a time it appears that the simulator is not fully started yet, hence thrown an…
Santanu Karar
  • 1,034
  • 1
  • 12
  • 27
0
votes
1 answer

framework version upgrade causing problem to my project

I was building a react native project and got an upgrade message when I run "yarn run ios": simctl[5640:1381079] CoreSimulator detected version change. Framework version (857.14) does not match existing job version (857.13). Attempting to remove the…
0
votes
1 answer

xcode ios simulator: how to set focus on specific window

I have n instances of xcode ios simulator and I want to switch a focus on instance with specified id. I tried next things: Switching focus using "open": open -a Simulator --args -CurrentDeviceUDID . But it opens the last focused simulator…
Rostislav Shtanko
  • 704
  • 2
  • 9
  • 30
0
votes
1 answer

Simulator, app snapshots to easily switch between different app builds?

How can we setup access to different builds so that they can easily / quickly viewed in the simulator.. We have several builds - production, development and one or more feature branches. From a development and testing point of view, it would be…
Jules
  • 7,568
  • 14
  • 102
  • 186
0
votes
1 answer

How to launch an iOS simulator app from the command line

Is there a way to launch an app on the iOS simulator from the command line, like simctl launch or something like that?
the_prole
  • 8,275
  • 16
  • 78
  • 163
0
votes
3 answers

Which app does app ID in /Application folder belong to?

I was able to get bundle identifiers for all apps installed on iOS simulator by going to directory ~/Library/Developer/CoreSimulator/Devices/[DeviceID]/data/Containers/Data/Application/ but how do I know which app the ID belongs to? Are there…
the_prole
  • 8,275
  • 16
  • 78
  • 163
0
votes
2 answers

Xcode 9: xcodebuild -exportArchive Error Reading File: info.plist

I have a project with multiple build configurations and build scripts that was recently migrated from Xcode 8 to Xcode9. It builds and runs fine to both simulator and device from Xcode, as well as archiving correctly. However, when I try to build or…
matt.writes.code
  • 674
  • 10
  • 22
0
votes
1 answer

Error shutting down simulator

In xcrun simctl documentation there is an entry: xcrun simctl shutdown booted - Shutdown a device Bun when I call it from command line, the simulator is not actually shut down but is freezed instead. How this could be solved? The only workaround I…
Andrii Abramov
  • 10,019
  • 9
  • 74
  • 96
0
votes
2 answers

Reset iOS Simulator Content and Add Photos

For UI Automation testing, I want to have a Reset iOS Simulator and then add a few photos to it before being my automation scripts begin. When I run this: xcrun simctl erase device_UUID xcrun simctl addphoto device_UUID…
Collin
  • 6,720
  • 4
  • 26
  • 29
1 2
3