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.
simctl
44
questions
1
vote
0
answers
63
views
iOS Simulator changes plist config after setting manually
I am setting up an automation to boot iOS simulators for end-to-end testing
I'm doing this by
creating a new device
booting it
waiting some time
changing settings manually
Which put together looks ...
1
vote
0
answers
585
views
"xcrun simctl get_app_container" with group identifier not working
it says I can use group identifier to get exactly the group I want:
➜ ~ xcrun simctl get_app_container booted
Print the path of the installed app's container
Usage: simctl get_app_container <...
0
votes
1
answer
67
views
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 ...
0
votes
2
answers
339
views
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 ...
1
vote
1
answer
533
views
Change status bar of simulator clones for UI tests
When enabling parallel testing in the ui test scheme, Xcode automatically spawns several clones of the simulator that is used for the tests. Additionally my workflow takes screenshots while testing. I ...
4
votes
0
answers
390
views
How to send a touch event to iOS simulator via command line?
On Android we have adb commands to send touch events adb shell input tap x y send touch events to a device via adb .
How do we do the same for iOS?
0
votes
1
answer
632
views
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 -...
3
votes
0
answers
790
views
How to install *.app file to real device by script?
Get device list
xcrun xctrace list devices
=> 'Simson’s iPhone 11 (14.4.2) (00008030-00122CD62291802E)'
Install app file
xcrun simctl install 00008030-00122CD62291802E app/ios/test.app
Then I ...
0
votes
1
answer
72
views
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 ...
4
votes
1
answer
3k
views
appium - XCUITest does not always start with error ECONNREFUSED
I am trying to run some appium tests on iOS and it seems about half the time the WebDriverAgent never starts up. I get this error over and over again in the appium logs:
[debug] [simctl] WD Proxy ...
5
votes
1
answer
2k
views
iPhone simulator screenshot not capturing device bezel
I'm trying to capture a simulator screenshot using Xcode 12. Right now, even though the "Show Device Bezels" option is enabled (and it shows the bezels on the screen), when I take the ...
3
votes
2
answers
1k
views
xcrun simctl status_bar not working in xcode 12
I have just upgraded my Xcode to 12 beta. I have tried to override the status bar on the simulator using this command:
xcrun simctl status_bar 52B135BF-F549-4684-A959-914499AB3296 override --time '9:...
5
votes
5
answers
30k
views
Xcodebuild: Unable to find a destination matching the provided destination specifier
I want to test same unit test on various platform versions.
However, I can't due to a xcodebuild error.
I built my project
xcodebuild build-for-testing \
-configuration Debug \
-scheme ...
2
votes
1
answer
513
views
How to retrieve the ios device screen resolution from the simctl command line
I'm looking for a way to retrieve via the xcrun simctl command line the screen resolution of the devices.
I'v tried to list device types with xcrun simctl list -j devicetypes but unfortunately the ...
4
votes
1
answer
2k
views
Is there a command to restart the Xcode iOS simulator from command line?
I have found a command to killall simulators but does not fit my needs. I need to be able to restart a particular simulator given the udid.
I have tried shutdown and then boot the simulator using
$ ...