-
Notifications
You must be signed in to change notification settings - Fork 253
Description
$ xcrun simctl
WARNING: The simctl interface is not stable and is likely to change prior to release.
Usage: simctl [--noxpc] [--set ] ... | help [subcommand]
Command line utility to control the iOS Simulator
Subcommands:
create Create a new device.
delete Delete a device.
erase Erase a device's contents and settings.
boot Boot a device.
shutdown Shutdown a device.
rename Rename a device.
getenv Print an environment variable from a running device.
openurl Open a URL in a given SimDevice
addphoto Add photo to the photo library of a given SimDevice
launch Launch an application by identifier
spawn Spawn a process in the simulator
list List available sessions, devices, or runtimes.
help Prints the usage for a given subcommand.
Activity
shazron commentedon Jun 20, 2014
I haven't investigated this fully, but it may not replace all ios-sim features.
shazron commentedon Sep 22, 2014
simctl does not actually launch the simulator with a certain device. For that you need to use "instruments"
this will list available devices
$ xcrun instruments -s devices
this will launch the simulator with the appropriate device
$ xcrun instruments -w "iPhone 6 Plus"
Plan:
instruments
to launch the Simulator with the specific devicesimctl
to install the appsimctl
to launch the appCreate a convenience script that wraps this all up.
shazron commentedon Sep 22, 2014
This feature should be in a 4.x branch since it completely overhauls the existing code.
shazron commentedon Sep 22, 2014
This should just be a node.js script
shazron commentedon Sep 23, 2014
4.x branch created.
gurubarancse commentedon Oct 13, 2014
I tried to write script but unfortunately could not get the stdout or stderr to work. Any ideas?
shazron commentedon Nov 25, 2014
I've started on the 4.x branch: https://github.com/phonegap/ios-sim/tree/4.x
The commands are stubbed out for now. It uses the simctl npm package that I wrote.
@gurubarancse I haven't gotten to that part yet, not sure.
shazron commentedon Nov 25, 2014
We might have to watch the log: http://stackoverflow.com/a/25822966/219684
shazron commentedon Nov 25, 2014
tail package could be used in combination with the log path: https://www.npmjs.org/package/tail
shazron commentedon May 14, 2015
Changes are logged in the "Usage" in the README as development progresses: https://github.com/phonegap/ios-sim/tree/4.x#usage
taren7 commentedon May 28, 2015
I am trying to use simctl to erase content and settings. It gives me an error saying
"An error was encountered processing the command (code=146):
Unable to erase contents and settings in current state: Booted"
Any idea how to fix this?
shazron commentedon May 28, 2015
Are you using the simctl node module or using simctl directly? If it's an issue for the node module, file an issue here instead: https://github.com/phonegap/simctl/issues
taren7 commentedon May 28, 2015
I am using simctl directly
On May 28, 2015 11:51 PM, "Shazron Abdullah" notifications@github.com
wrote:
shazron commentedon May 28, 2015
Then your issue is off-topic for this thread or phonegap/simctl. If I knew the answer I would reply but I don't unfortunately.